In my example I deleted two rows. I can see the CurrentDataTable row count value, which is correct, but I can't get at the data. I get an error accessing the row item 'Deleted Row Information Cannot be accessed through the row'. Here is a sample of my code. Am I accessing the row item information correctly?
Thanks
Tim
Dim loRow As DataRow'-- Cycle through the DataTable RowsFor Each loRow In Me.CurrentDataTable.Rows
If loRow.RowState = DataRowState.Added Or loRow.RowState = DataRowState.Deleted Then
dn.FillByPrimaryKey(loRow.Item(
"wpt_DepartmentCode"), loRow.Item("wpt_CategoryCode"))If dn.Count > 0 Then