A
Ansari
hi all,
I have some deleted row in datatable and I want to process these rows
following is the code:
With cmdDel
dim drs() as datatable = dtDetail.Select(Nothing, Nothing,
DataViewRowState.Deleted)
Dim dr as DataRow
For Each dr In drs '
.CommandText = "DELTE FROM Table1 WHERE Id = " & dr!Id
'************************* here i get the error
.ExecuteNonQuery()
Next
End With
I get the following error message
"System.Data.DeletedRowInaccessibleException - Deleted row information
cannot be accessed through the row."
So, how can I retrieve field values from a deleted row,...
Thanks in advance
Ansari
I have some deleted row in datatable and I want to process these rows
following is the code:
With cmdDel
dim drs() as datatable = dtDetail.Select(Nothing, Nothing,
DataViewRowState.Deleted)
Dim dr as DataRow
For Each dr In drs '
.CommandText = "DELTE FROM Table1 WHERE Id = " & dr!Id
'************************* here i get the error
.ExecuteNonQuery()
Next
End With
I get the following error message
"System.Data.DeletedRowInaccessibleException - Deleted row information
cannot be accessed through the row."
So, how can I retrieve field values from a deleted row,...
Thanks in advance
Ansari