Opposite of DataRow.SetModified?

bntringa

New member
Joined
Jun 19, 2007
Messages
4
Programming Experience
5-10
Hey all,

I have a table of values where a user may change one column of data - the default column value for each record is 0. I need to provide an "undo" option where if a user types in a value and then changes their mind, there is a function to "Reset Data Row".

Currently, this function will change the selected column value back to 0, but I also need to toggle the rowstate back to unchanged or unmodified.

Is there a way to do this, basically the opposite of DataRow.SetModified, such that the rowstate is set back to unchanged?

thanks!

- Brian
 
DataRow.RejectChanges
 
Just keep in mind that if the user makes one change, then makes another and changes their mind, calling RejectChanges will revert to the original state so the first change will be lost too.
 
Back
Top