Craig Buchanan wrote:
I would like to set the RowState from Deleted to Unchanged on
specific rows, without calling RejectChanges. I have a feeling that
if I enumerate the collection, the Deleted rows will not be in the
collection. Will FindRow exhibit the same behavior? What would be a
good way to approach this?
Do you mean not calling RejectChanges on the whole table?
You can RejectChanges on individual rows, you don't have to do them all.
For any row, a datatable is basically hanging on to two versions: the original
and the currrent. It does not, for instance, save edits to the row made before
it was deleted. If you have deleted a row, then you can either leave it like
that, or get back the original using RejectChanges on that row.