Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Databinding EndCurrentEdit Problem

Status
Not open for further replies.

phirst

Programmer
Oct 26, 2000
57
FR
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.
 
Dear phirst,

We are comming across same problem. Tried hell of ways, but no results. Can u pls help us, by letting us know, how did u solve this issue ???

Thanks in advance

regards,
priyesh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top