How can I find BindingSource has some changed data.

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
 

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