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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bound TextBox Value Not Saved 1

Status
Not open for further replies.

andrea96

Programmer
Jan 26, 2001
201
0
0
US
If I change the value in a bound textbox on an MDI child form, then click the save button on the toolbar without leaving the textbox, the value in the textbox reverts to the old one. I have stepped through the code in debug, and the program is changing the new text value back to the old one at the point I do an EndCurrentEdit on the BindingManagerBase. The new value is never making it into the DataSet. If I tab out of the textbox before clicking save, the new value is saved as expected. Is there a way to save the new value using the toolbar without leaving the textbox first?

Thanks.
 
you could always do a me.refresh or mdi.refresh (with this i mean the form) before the endcurrentedit or a repaint or an invalidate.

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Thanks for your reply. I tried your suggestions, but they didn't work. I ended up programmatically selecting another control on the child form before the endcurrentedit, and that seems to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top