Read a dataRow from a DataTable based on row Index

Hello @maria.josephina Yes it is possible to read. You can go through this to get better understanding

Also, you can get Row index from datatable inside Loop like below :

foreach(DataRow row in yourdatatable.Rows)
{
Int value_row_index =yourdatatable.Rows.Indexof(row)
//Writeline value_row_index.ToString()
}

1 Like