Dataset HasChanges trouble

A

Andy

I have window form with datadapter, typed dataset and textbox controls with
text properties binding with dataset. Dataset does not reflect changing in
controls typed by user and HasChanges method returns false. What is wrong?
Thanks for help.
 
M

Miha Markic

Try invoking BindingManagerBase.EndCurrentEdit method before processing
DataSet.
Something like:
textbox1.DataBindings[0].BindingManagerBase.EndCurrentEdit;
 
A

Andy

Thanks,
it works well.

Miha Markic said:
Try invoking BindingManagerBase.EndCurrentEdit method before processing
DataSet.
Something like:
textbox1.DataBindings[0].BindingManagerBase.EndCurrentEdit;

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com

Andy said:
I have window form with datadapter, typed dataset and textbox controls with
text properties binding with dataset. Dataset does not reflect changing in
controls typed by user and HasChanges method returns false. What is wrong?
Thanks for help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top