Best Way to Check for Dataset Changes

  • Thread starter Brian P. Hammer
  • Start date
B

Brian P. Hammer

vb.net 2.0
VS 2005

What is the best way to check to see if a table in the dataset or the whole
dataset has changes?

If I use
myCurrencyManager = CType(Me.BindingContext(Me.DsMain.tblClient),
CurrencyManager)
myCurrencyManager.EndCurrentEdit()
if dsMain.HasChanges then msgbox("Is Dirty")

On my form, I have several controls loaded from the same dataset but
different tables using the data wizards. When I put my cursor in a textbox
bound to dsMain.tblClient and then put the cursor in a textbox bound to
dsMain.tblNotes, the dataset shows it has changes. This is with no data
changes and no position changes.

What is the best way to check for changes?

Regards,
Brian
 
B

Brian P. Hammer

Jeffery - Thanks for your post. Got you attachment but Form1.vb is not
included. Form1.resource is there. Want to send me the code for form1?

Thanks,
Brian
 
B

Brian P. Hammer

OK, I think it is an issue with Component One's textbox control causing the
problem.
 
J

Jeffrey Tan[MSFT]

Ok, if you need further help, please feel free to tell me, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
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