Sort DropDownList

S

Samuel Shulman

I am looking for a simple method to sort the DropDownList after it was
loaded

Thank you,
Samuel
 
D

dkode

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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top