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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top