A collection is either sorted or not, and if there is a sort, it won't let you 
re-order.  One way to allow re-ordering is, after a Sort (and the 
CollectionEvent.REFRESH event), copy the sorted results into an unsorted 
collection using toArray on the sorted collection.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of chris.cobb40
Sent: Monday, April 06, 2009 10:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid Column Sort Prevents Drag From Updating 
DataProvider


Hi

I think I've seen this commented on before on flexcoders so sorry for the 
duplication.

In the reply the person who asked the question was told to turn off the Column 
Sort and that would do it but won't this reset the sort order back to default 
before allowing the drag ?

I want to cater for the situation where the user might want to sort the 
DataGrid into reverse alphabetical order and then just drag the resulting first 
row to be the second one.

Maybe I'm using the wrong method of turning off the column sort - I set the 
sort property of the ListColection DataProvider for the DataGrid to null and 
then refresh ?

Any sugegstions please ?

Thanks

Chris

Reply via email to