PDA

View Full Version : Sort Datagrid Programmatically


guide0
05-24-2010, 05:12 PM
hi All,
I am looking for a way to sort a datagrid programmatically, at startup, using the columns' datafield.
Anyone that has experience with that ?

Peter Cowling
05-25-2010, 04:42 PM
Datagrids are data driven. Sort the data and refresh the grid is the usual approach.

Sometimes you need to match a selection on the grid to the data before making a sort, but its not clear that this is what you want to do.

drkstr
05-25-2010, 11:53 PM
Here is a working example from another post awhile back.

http://www.actionscript.org/forums/showpost.php3?p=992949&postcount=6