I have a dbcombo box that I allow users to add new items to which are then saved to the db... but even after a refresh the dbcombo is not alphabetized.
How can I make it Auto-alphabetize?
Printable View
I have a dbcombo box that I allow users to add new items to which are then saved to the db... but even after a refresh the dbcombo is not alphabetized.
How can I make it Auto-alphabetize?
After you refresh, try setting the Sorted Property to true again :)Quote:
Originally Posted by DKasler
Cheers,
RyanJ
It would seem that the DBcombo doesnt have a sorted property.
Though standard combo boxes do.
Hmm, in that case you will have to do it manually.Quote:
Originally Posted by DKasler
Load the list into an array, sort them and then write them back into the combobox... Thats about the only method I can think of.
The best sorting algorithm is the Quick sort which can be found in the Code bank :)
Cheers,
RyanJ
thanks RyanJ