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
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