Groups | Blog | Home
all groups > dotnet windows forms > january 2006 >

dotnet windows forms : How can I find BindingSource has some changed data.


A.M-SG
1/31/2006 11:30:01 AM
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



dbuchanan
1/31/2006 1:28:51 PM
Alan,

Check out the "DataRowState Enumeration" in help

Doug
dbuchanan
1/31/2006 1:32:25 PM
Alan,

Also check out "How to: Check for Changed Rows" in help

Doug
AddThis Social Bookmark Button