Hi,

You're better off wrapping the XMLList in an XMLListCollection and use
that as the dataProvider for the DataGrid.  XMLListCollection is a
ListCollectionView for the underlying source and will retain the sort
order when you click on a DataGrid header.  Using an XMLListCollection
also gives you the added benefit of avoiding binding issues.  You can
also use a sortCompareFunction or use the XMLListCollection's sort
function on the DataGrid's headerRelease event.

-TH

--- In [email protected], "edlueze" <[EMAIL PROTECTED]> wrote:
>
> Thanks for the response, but my question is even more basic than that.
> I can't even find the object that contains the sorted data. And I'm
> just trying to move it into an array. I've been trying to dig into the
> DataGrid itself through it's dataProvider, but the examples seem to
> point me away from that route and have me work with the original
> XMLList (which doesn't seem to get sorted). Any more ideas?
>
> --- In [email protected], "Sherif Abdou" flex@ wrote:
> >
> > SharedObjects? or maybe just write it to the server and then have it
> pull that data out when the user comes back.
> > ------
> > Sherif Abdou
> > http://VadexFX.com
> > http://Sherifabdou.com
> > ----- Original Message -----
> > From: edlueze
> > To: [email protected]
> > Sent: Thursday, September 18, 2008 7:10 PM
> > Subject: [flexcoders] Retrieving Sorted Data from DataGrid
> >
> >
> > I've loaded a DataGrid with an XMLList. When the user clicks on a
> > header to sort the DataGrid I want to save the data in the DataGrid
in
> > the order that it was sorted. How's that done?
> >
>



Reply via email to