Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / December 2006



Tip: Looking for answers? Try searching our database.

Datagrid Sorting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
srirama.83 - 20 Dec 2006 06:33 GMT
I have a datagrid which displays the values from the Dataset. The Dataset
values are not sorted alphabetically. So the datagrid initially displays the
values in an unsorted manner. Only when I click on the header of the datagrid
the values are displayed in assorted manner. I want the datagrid to display the
values in alphabetical order when it is loaded with the values. Can this be
done ?
If so, anyone please let me know how to do that .
TroyK - 21 Dec 2006 22:32 GMT
Looks like you want to use the addSort function of the DataSet.  So before you
assign the dataset to the datagrid you would run something like this.

my_ds.addSort("nameSort", ["name"], DataSetIterator.Descending);

Later

Troy
srirama.83 - 22 Dec 2006 08:53 GMT
Thanks a lot,
I Used an array as the dataset for datagrid and i used the sortOn() Function of Array.
And this worked .
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.