المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Combo Boxes and Database Binding



C# Programming
09-16-2009, 12:24 PM
Hi all,

I have a combo box that can be several values (example: Yes/No/Neither). I want to bind the combobox possible options to a table in a database.

TableOptions
Yes
No
Neither

But lets say a user ran the application and went ahead and selected one of these options. I am storing that selection in a different table.

TableProduct
ProductID Selection
1 No

When the application loads I want it to display the chosen selection (No in this case), but still show the allowable options stored in the first table.

Is this possible?

Thanks
Marc