Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This has to be simple, but it's beating me.

How do I load row 0 ComboBox display and value members manually, then follow with an SQL query for rows 1 and on?

I'm trying to provide an "ALL" option for the construction of an SQL SELECT string.

Thank you.

John
Posted
Comments
Sergey Alexandrovich Kryukov 17-Nov-14 16:10pm    
Not clear. To start with, it's good to indicate what you are talking about. If you say "ComboBox", the question is: which one? Exact full type name, please.
—SA

1 solution

It actually is pretty easy as you expect. There are different ways. You can add the option to your Data Source or you can just add it manually.

Some good examples are here: http://stackoverflow.com/questions/5134152/add-an-item-to-combobox-before-bind-data-from-data-base[^]
 
Share this answer
 
Comments
Maciej Los 17-Nov-14 16:16pm    
+5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900