Avatar

Level 10

Hi Isa,

It's possible that this line was written with a typo :

<mx:DataGridColumn id="c2" headerText="Score" dataField="customFields['score']" labelFunction="scoreLabelFunction" />

Try removing the dataField included there, so :

<mx:DataGridColumn id="c2" headerText="Score" labelFunction="scoreLabelFunction" />

Check out the docs here :

http://livedocs.adobe.com/flex/3/langref/mx/controls/dataGridClasses/DataGridColumn.html#dataField

  Which say that you need to build a sortCompareFunction on the DataGridColumn for this kind of case.


  hope that helps

   nigel