There is no way to find the index of a give datarow, other then going
through the datatable looking for it.
You can also add a column to keep track of the row's index, but that means
keeping it up to date during inserts, etc.
"Nikolay Petrov" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How to find a row number in a datatable?
>
> I know how to iterate through rows in table using:
>
> dim row as system.data.datarow
> for each row in DataSet1.tables(table_index).rows
> 'statemens
> next
>
> But i want to find the row number which my statement currenlty is working
> on.
>
> TIA
>
>
|