|
I have a form that uses a BindingNavigator, a BindingSource bound to a table in a SQLServerEverywhere db, C#, in a tab control.
The problem is that I have a couple of fields in a couple of different tabs that I bind to the selected indexes of dropdown comboboxes, and they don't bind for the first record in the table. Only for the first record in the table (all of the other fields do bind properly to various other types of controls). If you add a new record and change the ordering, the record that was previously first will now bind properly, but the new first record won't.
I initialize the comboboxes during form_load like this: classCombo.DataSource = AircraftClasses; classCombo.ValueMember = "ItemIndex"; classCombo.DisplayMember = "ItemDescription";
AircraftClasses is just an array of {ItemIndex, ItemDescription}.
Everything works great, except for that stupid first record. I would appreciate any thoughts.
Thanks.
-Gary
|