-
Jun 6th, 2005, 02:27 PM
#1
Thread Starter
Addicted Member
alphabetize a dbcombo
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?
-----MY SITES-----
BayRidgeNights.Com - NYC Nightlife Forums
Fight Communism - Rate Posts!
-
Jun 6th, 2005, 02:29 PM
#2
Re: alphabetize a dbcombo
Originally Posted by DKasler
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
Cheers,
RyanJ
-
Jun 6th, 2005, 02:38 PM
#3
Thread Starter
Addicted Member
Re: alphabetize a dbcombo
It would seem that the DBcombo doesnt have a sorted property.
Though standard combo boxes do.
-----MY SITES-----
BayRidgeNights.Com - NYC Nightlife Forums
Fight Communism - Rate Posts!
-
Jun 6th, 2005, 02:46 PM
#4
Re: alphabetize a dbcombo
Originally Posted by DKasler
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.
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
-
Jun 6th, 2005, 02:53 PM
#5
Thread Starter
Addicted Member
Re: alphabetize a dbcombo
-----MY SITES-----
BayRidgeNights.Com - NYC Nightlife Forums
Fight Communism - Rate Posts!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|