A row is one item in a collection of DataRow objects. The collection is the DataRowCollection. Like most collections, it exposes an IndexOf property which will give you the index of the row in the collection. Something like :
---- If thisRow isnot Nothing Then Dim idx as integer = myDataTable.Rows.IndexOf(thisRow) End If ---- On Nov 3, 8:15 pm, "yashodabest v" <[EMAIL PROTECTED]> wrote: > Hi All, > > In a datatable it contains datarows. So, I need to get the row ID of a > particular row. > Do u know a way of getting the row ID(row index) of a datatable datarow? > > Thanks in advance
