G
Geoff
Hi
I'm hoping somebody can help me with the following.
I'm trying to delete all the rows in a dataview. There are 200 rows.
Everything works fine until I delete half way through and then I'm told in
an exception that
"There is no row at position 100"
The code I'm using is:
For Each i As Integer In MyList
dview.Delete(i)
Next
where MyList holds the numbers 0 to 199
There are 200 rows in the dataview (I can see them in a datagrid).
Can anybody tell me what I'm doing wrong?
Geoff
I'm hoping somebody can help me with the following.
I'm trying to delete all the rows in a dataview. There are 200 rows.
Everything works fine until I delete half way through and then I'm told in
an exception that
"There is no row at position 100"
The code I'm using is:
For Each i As Integer In MyList
dview.Delete(i)
Next
where MyList holds the numbers 0 to 199
There are 200 rows in the dataview (I can see them in a datagrid).
Can anybody tell me what I'm doing wrong?
Geoff