Has Dataset Changed?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have a form where I want to only enable a save button when something has
changed in the dataset. Currently I'm checking current values against
original values everytime a value is changed to enable/disable the save
button. Is there a way of telling if a dataset has been changed (ds
property?) other than using this method?

Any help greatly appreciated!
Thanks in advance
 
Kerry said:
Mark,

If ds.HasChanges Then ...

I wonder if the DataSet class is "smart" enough to set this property
off if a changed value is changed back to the original value?
 
Kerry,

What do you mean with set back, if you mean set back by hand to the original
values, than it will forever be a question if that was a change or not,
however if it is using the methods Reject changes or accept changes, than it
would do that. (Even it it has been a datarow that was changed)

I hope this gives an idea,

Cor
 
Back
Top