How can I find BindingSource has some changed data.

  • Thread starter Thread starter A.M-SG
  • Start date Start date
A

A.M-SG

Hi,



In my WinForms application, I have a set of controls that are bound to a
BindingSource control.



When the user closes the form, I need to ask him if he wants to save data.



The problem is I cannot find anyway to check if the value of any textboxes
is changed!



Obviously checking DataSet.HasChange is not adequate. The reason is that the
user might be in middle of adding or editing a record so the record has not
been reflected to underlying dataset yet, but user accidentally clicks on
form close button.



Any help would be appreciated,

Alan
 
Back
Top