How to know the index of a row in a datatable?

Hello,

I have a Datatable with some columns and rows:

Column1 Column2 Column3
Hello Goodbye Asdf
123 98328 903

I need to know the index of the row that contains “98328” in “Column2”.

Thanks

1 Like

Hopefully this will give you the information you need.

2 Likes

@EngAnalyst Try below statement and it will give row index.

datatableVariable.Rows.IndexOf(datatableVariable.Select(“Columnname=‘Value’”)(0)).ToString

1 Like

hi @EngAnalyst

See link for your reference. I hope this might be helpful to you!

cheers :smiley:

Happy learning :smiley: