Rows.IndexOf(row) +1

Hello

This might be very basic.in lesson 9 practice 2 of the training material. while taking the data from each row we assign rowindex = .Rows.IndexOf(row) +1

what does indexof(row) + 1 means?

Thanks

This will give you the index of current row in for each loop. In datatable the row id will start with 0. So to start with 1, we are adding 1.
:grinning:

8 Likes

If it is the rite solution, please mark it as solved :grinning:

1 Like