Find a row index in a dataset

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

Does anyone know how to find the index of a row in a data table in a dataset?
The Find Method returns a data row, but to remove/delete a row from a data
table you have to supply the row index and I am not sure how to find that.
There does not appear to be an indexof or getindex property/method.

TIA
 
Chris,

Find method of the DataView actually returns index of the found row. Anyway
even if you do not have an index but have an actual DataRow, then you could
call Delete method of the DataRow and it will be deleted from the DataTable
 
Back
Top