Check If DataTable Row Is Marked For Deletion


This code checks to see if a DataTable row is marked for deletion

        If DataTableName.Rows(RowCounter).RowState = 8 Then
                 //Code to run if the row is marked for deletion
        End If

Note: 8 correlates with DataRowState.Deleted.

No comments:

Post a Comment