Hi BStorm,
BStorm said:
AcceptChanges applies to ALL changes in the DataSet as a set, I believe.
IOW, there is no granularity to this method as far as I can tell. Or is it
possible to do it on a per/row basis?
From the documentation for DataRow.AcceptChanges (which I referenced
earlier in this thread):
"Commits all the changes made to this row since the last time
AcceptChanges was called."
And also:
"When invoking AcceptChanges, the EndEdit method is implicitly
called to end any edits. If the RowState of the row was Added or Modified,
the RowState becomes Unchanged. If the RowState was Deleted, the row is
removed."
Keep in mind that AcceptChanges will *not* revert the fields to their
original values and *will* remove the DataRow from the rows collection if
the RowState is Deleted. In other words, you are doing exactly what the
DataAdapter does when you call Update, but *without* actually updating the
database. If you really want "undo" functionality then you should use
RejectChanges instead.
Regards,
Dan