Hello,
I want the comboBox to display the appropriate displayMember when the
valueMember is stored in the dataset.
Explanation:
The data source of my comboBox is a lookup table. The user will select
a value in the comboBox and a key (the ID in the lookup table) will be
stored in the data table.
On my form is a datagrid that displays all the rows in the data table.
The current record is bound to a series of controls on the form of
which one is the comboBox.
I know how to bind my comboBox to the lookup table. I know how to bind
my dataGrid to my dataTable.
But how do I tie them together?
I suppose that I want to bind the ValueMember of my comboBox to the
current record some how, But how do I make this happen?
It needs to be able to perform the following tasks;
1.) The comboBox must displays the appropriate DisplayMember associated
with the Value member that is stored in the dataTable
2.) The comboBox must be able to update the column in my dataTable.
Thank you,
- Doug
|