I would like to set a combobox datasource to evaluate an enum such that the dropdown lists the Text Values and the Selected Index reflects the integer value. Found that worked ok... but the problem I have is I want the Selected Index bound to a datarow. So when the user picks another text value in the combobox the index is pushed to the datarow.
The code below works ok but the combobox pushes the Text value to the datarow. How to I code it such that the combo selectedindex is updated to the datarow rather than the text value.
cmbPlane.DataBindings.Add("Text", drCurrent, "Plane")
cmbPlane.DataSource = System.Enum.GetValues(GetType(EcCplPlanes))