Data Binding problem with ComboBox
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi everybody!!! I have a DataSet with only one DataTable in it. The DataTable has many DataColumn and one of those is binded to a ComboBox. Below the DataColumn...
DataColumn protocolloColumn = new DataColumn("protocollo");
protocolloColumn.DataType = System.Type.GetType("System.String");
carDataTable.Columns.Add(protocolloColumn);
...and the Bindingthis.protocolloComboBox.DataBindings.Add(new Binding("SelectedValue", carDataSet, "car_models.protocollo"));
The ComboBox is populated with some string. When I select a value from the combobox, this value is not stored in the dataset. Can anybody help me?