S Samuel Shulman Sep 12, 2006 #1 I am looking for a simple method to sort the DropDownList after it was loaded Thank you, Samuel
M Mark Rae Sep 12, 2006 #2 I am looking for a simple method to sort the DropDownList after it was loaded Click to expand... 1) Sort the data first, then bind it to the DropDownList 2) Use client-side JavaScript: http://www.google.co.uk/search?sour...GGLG:2006-28,GGLG:en&q=JavaScript+SELECT+sort
I am looking for a simple method to sort the DropDownList after it was loaded Click to expand... 1) Sort the data first, then bind it to the DropDownList 2) Use client-side JavaScript: http://www.google.co.uk/search?sour...GGLG:2006-28,GGLG:en&q=JavaScript+SELECT+sort
D dkode Sep 12, 2006 #3 You can also take your data to bind, and get a DataView (DataSet.DefaultView) if a dataview is available, and then apply a sort to the dataview. Not sure what type of data you are binding though, perhaps if you could inform us, we can give you some better advice. thanks Sean
You can also take your data to bind, and get a DataView (DataSet.DefaultView) if a dataview is available, and then apply a sort to the dataview. Not sure what type of data you are binding though, perhaps if you could inform us, we can give you some better advice. thanks Sean
S Samuel Shulman Sep 13, 2006 #4 Thanks Sean and the other fellow I am loading the dropdown lists with Enum values defined locally so I first read it into a DataTable and then I move the values to the DataView, sort it and load it Cheers, Samuel
Thanks Sean and the other fellow I am loading the dropdown lists with Enum values defined locally so I first read it into a DataTable and then I move the values to the DataView, sort it and load it Cheers, Samuel