hi every1..
i want to sort my combo box bt the pblem is that that i have bind it with a database.
in the properties window i have set sorted = true bt it says

ComboBox that has a DataSource set cannot be sorted. Sort the data using the underlying data model.

Can any1 help me... thanks

Recommended Answers

All 5 Replies

i tried to binding data into combo box and set Sorted = true and it works fine...

Hi mine it doesn't work any another way

u can sort it in database itself. u can use order by in ur query i think.

u can sort it in database itself. u can use order by in ur query i think.

yes, this an another solution.
use order by ColumName ASC (to sort ascending)
use order by ColumName DESC (to sort Descending)

Yes if u sort it in database itself then while loading combo itself it get sorted..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.