Hello,
Is there a way to bind Combobox datasource with an column from bindingsource?
The following example works fine:
//fill combobox with some data
cBox.DataSource = dataSetOne.Table[0];
cBox.DisplayMember = "columnA";
cBox.ValueMember = "columnB";
//bind columnB from dataSetTwo with combobox
cBox.DataBindings.Add("Text", dataSetTwo.Table[0], "columnB" , true, DataSourceUpdateMode.OnPropertyChanged);
But how to add DataBindings with a new column name like "columnC"? Let's say the column types are the same just the column name is different.
//bind columnC from dataSetTwo with combobox
cBox.DataBindings.Add("Text", dataSetTwo.Table[0], "columnC" , true, DataSourceUpdateMode.OnPropertyChanged);
Hope my question is clear defined.
Best regards.
EDIT:
Could please somebody help?!