I can easily load an enum into a combobox, but I am struggling to pass the selected data back to the table. I am surely missing something simple, so can anyone help?
public enum Gender
// in the relevant location:
genderAutoCompleteCombo.DataSource = Enum.GetValues(typeof(Gender));
genderAutoCompleteCombo.DisplayMember = "Display"; // this is not right
genderAutoCompleteCombo.ValueMember = "Value"; // nor is this
genderAutoCompleteCombo.DataBindings.Add("SelectedValue", adapter.Table, "GenderId"); // this should work once the other two are fixed!