I have a dropdownList that has the following:
DataSource: binds to a table with 2 columns (ID, Style)
DisplayMember: Is Set to "Style"
ValueMember: Is Set to "Style"
I have a binding source which binds to an model. One of its properties, "PartitionStyle" is a string value.
I set the dropdownList DataBinding.Text: BindingSource.PartitionStyle (Note, I did also try DataBinding.SelectedValue as well)
Now when I choose a value from the drop down list, the "PartitionStyle" property updates to that value which is great. So I save that model and close the form down. Now when I relaunch the form passing in that model to the bindingsource, the display or text of that dropdownlist does not have the correct value(has the index 0 value selected).
I've tried setting BindingSource.DataSource to that model, then BindingSource.ResetBindings, it doesn't work. All the rest of the controls that are NOT dropdownList are displaying correctly(textboxes have the correct values from the properties they are binded to, checkboxes as well).