Binding Combobox to Data

stevecking

Active member
Joined
Dec 27, 2006
Messages
32
Programming Experience
5-10
This problem has cropped up for me occasionally and I never resolved it. I'm trying to bind a dataset to the combobox; set the Datasource, DisplayMember, and ValueMember; then store the ValueMember in the Problems.ProjID field. While I am easily able to bind the dataset to the control and use the lookup table to display the DisplayMember value, I can not determine how to store that value into the datatable and have the combobox display as follows: Problems.ProjID - 9, combobox DisplayMember "ACCS". Everyplace I look for databinding explains about binding the database but not about storing the ValueMember in the database. This is an issue I'm sure 105% of you can answer but it's bugging me.:confused:
 
Back
Top