I made a consult from excel to obtain the cell value of certain row with linq,
I built this expression “(From row In dtVariable.AsEnumerable()
Where row (“Column4”).ToString.Contains(“TOTAL”)
Select row (“Column10”))(0).ToString” and it works, this gives me the value of the total in a string variable, but I need the row number too. Any idea to how to get the row number of this row?
You can try with these expression datable.Asenumerable.Tolist.Findindex(Function(x) x(“Column1”).Tostring.Equals(Val1) And x(“Column2”).Tostring.Equals(Val2) And x(“Column3”).Tostring.Equals(Val3))