Best Way to Check for Dataset Changes

  • Thread starter Thread starter Brian P. Hammer
  • Start date 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
 
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
 
OK, I think it is an issue with Component One's textbox control causing the
problem.
 
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.
 
Back
Top