Re: [flexcoders] Sorting DataGrid Header Text

2008-01-19 Thread Sherif Abdou
kinda like this
var a:ArrayCollection = new ArrayCollection();
var field:SortField = new SortField(/*place how u wnat the sort*/)
var sort:Sort = new Sort();
sort.fields=field;
a.sort=//ur stuff
a.refresh();



- Original Message 
From: CK <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, January 19, 2008 4:27:43 PM
Subject: [flexcoders] Sorting DataGrid Header Text

Hi,

Now I've the test data displayed, how does one go about setting the 
default header order? So when the grid is first rendered it sorts:

Title
Actors
Directors
Genre
Plot
Rating





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] Sorting DataGrid Header Text

2008-01-19 Thread Sherif Abdou
use the sort class on the arrayCollection


- Original Message 
From: CK <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, January 19, 2008 4:27:43 PM
Subject: [flexcoders] Sorting DataGrid Header Text

Hi,

Now I've the test data displayed, how does one go about setting the 
default header order? So when the grid is first rendered it sorts:

Title
Actors
Directors
Genre
Plot
Rating





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs