Modify and Find a deleted row

  • Thread starter Thread starter C P
  • Start date Start date
C

C P

I have a DataSet that's not connected to any DataAdapter or anything. I
know that if I call DataRow.Delete(), then that row doesn't actually get
deleted until I call DataRow.AcceptChanges(). DataRow.Delete() just sets
DataRow.RowState to Deleted.

However, if before I call, AcceptChanges(), I change the values of a column
in the DataRow, will the RowState change from Deleted to Modified - or do I
have to cancel the pending deletion before editing the DataRow?

Also, does DataTable.Find(), find rows with a RowState of Deleted?

Thanks,
Chris
 
Hi CP,

This is interesting, how do you reach that as far as I know detached row?

(Or do you do reject all changes to a dataset, than all is back in the
original state from the last fill or last acceptchanges)

Cor
 
Back
Top