Binding combobox selectedvalue to a dataview column
Posted on 2004-08-04
I have a few comboboxes on my form that I fill through code. Now I want to bind the selected value of those comboboxes to information contained in my dataview. I tried
cboHairColor.DataBindings.Add("SelectedValue", dv, "Hair")
as well as DisplayMember and SelectedItem instead of SelectedValue but it's not showing any data in the field.
This is the code I use to bind my text boxes to my dataview, so not sure what's not working for my comboboxes.