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
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
Hopefully this will give you the information you need.
@EngAnalyst Try below statement and it will give row index.
datatableVariable.Rows.IndexOf(datatableVariable.Select(“Columnname=‘Value’”)(0)).ToString
hi @EngAnalyst
See link for your reference. I hope this might be helpful to you!
cheers
Happy learning