1 Reply Latest reply on Jan 17, 2007 6:19 PM by ntsiii

    Sorting DataGrid with XMLListCollection as Data Provider

    briantrusler
      I have two identical MXML applications, each with simple DataGrid and ColumnChart controls. The DataGrid and ColumnChart are bound to the same dataProvider, however the data in the first application is returned as an ArrayCollection, and the data in the second application is returned as an XMLListCollection/e4x. Both applications work perfectly, except when the DataGrid is sorted by clicking on a column header of numeric value, the ArrayCollection-based column sorts as expected (as numeric data). The same action on the XMLListCollection-based column sorts as string data. I would like to standardize on XMLListCollections/e4x for all controls if possible (and it seems that I can for everything that I've attempted so far), but this small sorting issue stands in my way. Any thoughts?