how to make a default value in combobox where item doesn't exist in collection
-
I have a combobox that I fill during the form load. That works fine. The question I have is how do I make it say "Select An Item to autofill" or whatever? I understand I could use selectedindex or something like that but the actually text i wish to display by default is not in the list. thanks wasn't sure what to search for on this :(
-
I have a combobox that I fill during the form load. That works fine. The question I have is how do I make it say "Select An Item to autofill" or whatever? I understand I could use selectedindex or something like that but the actually text i wish to display by default is not in the list. thanks wasn't sure what to search for on this :(
-
I would just add it to the combo data list and then set it to be the selected value. Nothing fancy. :cool:
Me, I'm dishonest. And a dishonest man you can always trust to be dishonest.
Honestly. It's the honest ones you want to watch out for...YEAH makes since to do it that way i guess, but the keywords are tied into each row on the database thats the only problem I have.
modified on Sunday, February 14, 2010 3:46 AM