This functionality works for me. The dataProvider arraycollection is bind to my
datagrid (in mxml). When my dataProvider is filled with the data, I do the
following:
var s:Sort = new Sort();
s.fields = [new SortField("transaction_date",false,true)];
dataProvider.sort = s;
dataProvider.refresh();
I also have sortDescending="true" on my transaction_date column
Adam
----- Original Message -----
From: Toby Dussek
To: [email protected]
Sent: Thursday, March 08, 2007 9:47 AM
Subject: [flexcoders] Show sort arrow when datagrid first renders
How can I get the datagrid dsort arrow ot appear without the user
clicking? I need to indicate the initial default sort order, but when I
sort the data model, the datagrid doesn't show an arrow until a column
is clicked.
Toby Dussek
UK