Undo DataRow.Delete?

  • Thread starter Thread starter Craig Buchanan
  • Start date Start date
C

Craig Buchanan

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?

Thoughts?

Thanks,

Craig Buchanan
 
Not sure you can take that particular approach, but my initial thought was
to perhaps consider using a cloned dataset so you can "restore" from it.
May depend on the size of your dataset and app memory requirments, etc, as
to whether that's reasonable to do or not.
 
I was able to use the DataRow.Item(columnName, DataRowVersion.Original) for
my purposes.
 
Back
Top