How to get row index value?

I have a data table consist of two columns(Name, value). How can I get the row index for a proper value? Because whenever the process executed row index fetched the value and that is added up by 2. Please suggests some way.

Thanks in advance.




You can assign ForEachRow Index in output
Then u can get the current row index
I do understand that you want to ge the rowindex for a particular value e.g. name.
IndexOf() methods often return the first occurence

give a try on following LINQ:
assign activity:
left side: arrRowIndex (Datatype Of Int32()
right side

Enumerable.Range(0,YourDatatableVar.Rows.Count).Where(Function (x) yourDataTableVar.Rows(x)("Name").toString.Trim.Equals("YourSearchedName")).toArray