DeletedRowInaccessibleException on Unchanged DataRow

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am getting a DeletedRowInaccessibleException ("Cannot delete this row since
it's already deleted") when I call DataTable.Rows.Remove or DataRow.Delete on
a datarow that has a RowState of Unchanged.

Here is the stack trace:
at System.Data.DataTable.SetNewRecord(DataRow row, Int32 proposedRecord,
DataRowAction action, Boolean isInMerge)
at System.Data.DataTable.DeleteRow(DataRow row)
at System.Data.DataRow.Delete()
at System.Data.DataRowCollection.Remove(DataRow row)

Has anyone encountered this?
 
Back
Top