How can I find the 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
 
Y

Yan-Hong Huang[MSFT]

Hello Alan,

I noticed you also posted the question in
microsoft.public.dotnet.framework.windowsforms and
microsoft.public.dotnet.framework.windowsforms.databinding queue. Doug has
replied you there. You may refer to some MSDN topics for more information.
(http://msdn2.microsoft.com/en-us/library/czb9z269.aspx)

If there is any question, please feel free to post there and we will
closely monitoring the post there. Thanks very much.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://msdn.microsoft.com/subscriptions/managednewsgroups/

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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