Should be doable. When you click on a header, a HEADER_RELEASE event is dispatched. If you listen for it and call preventDefault(), the DataGrid will not sort. Once you get the sorted data back from the server, set the Sort on the collection before assigning it and the header should get the arrow.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Paul DeCoursey Sent: Tuesday, March 06, 2007 12:22 PM To: [email protected] Subject: [flexcomponents] Extending DataGrid I'd like to extend DataGrid, but I'm not sure if what I want is possible. I need to have the sorting enabled to the extent that clicking on a header will request the dataProvider to sort the data and that the sort arrow will appear. I don't want the dataGrid to do the sort. The reason is I need to sort the data on the server because the grid will be paginated and will not have all the data to sort. Is this possible with the DataGrid or do I have to roll my own? Paul
