how to get datatable row index from value in
  • how to get datatable row index according to column value using code.
  • 1 Comment sorted by
  • Vote Up0Vote Down ithackerithacker
    117.50 Karma Accepted Answer
    first you have to make one column as primary key then you can get value by using this code

    dt.PrimaryKey = New DataColumn() dt.Columns(0)}

    Dim drTemp As DataRow = dt.Rows.Find("1")
    Dim i as Integer = dsRecords.Tables(0).Rows.IndexOf(drTemp)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook


Popular Posts of the Week

    Optimum Creative