Dataset HasChanges trouble

  • Thread starter Thread starter Andy
  • Start date Start date
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.
 
Try invoking BindingManagerBase.EndCurrentEdit method before processing
DataSet.
Something like:
textbox1.DataBindings[0].BindingManagerBase.EndCurrentEdit;
 
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.
 
Back
Top