Hi all,
I have a form with a combo and several textboxes all bound to a dataview, for navigation and filters etc.
The combo is just bound to the text like this:
cbo.DataBindings.Add("Text", dv, "FieldName"
BUT when I want to save changes to the dataset I call EndCurrentEdit (This works fine for the textboxes)
MyForm.BindingContext(dv).EndCurrentEdit()
It changes the value of the combo!!! (It fires the SelectedIndexChanged event)
So I can only ever save one value for the combo, the first one!!!
Any ideas?
Thanks,
Paul.
I have a form with a combo and several textboxes all bound to a dataview, for navigation and filters etc.
The combo is just bound to the text like this:
cbo.DataBindings.Add("Text", dv, "FieldName"
BUT when I want to save changes to the dataset I call EndCurrentEdit (This works fine for the textboxes)
MyForm.BindingContext(dv).EndCurrentEdit()
It changes the value of the combo!!! (It fires the SelectedIndexChanged event)
So I can only ever save one value for the combo, the first one!!!
Any ideas?
Thanks,
Paul.