I have a datatable, I loop through each row, and I want to search for a specific string and get the column name/index. I tried "CurrentRow.ItemArray.Contains(string) in if condition but I got nothing
one option would be to do it within a second for each looping over ItemArray
Enumerable.Range(0,CurrentRow.ItemArray.Length).Where(Function (x) CurrentRow(x).toString.Equals(string)).toArray
how Can I replace X ? how can I use the LINQ please ?
find starter help here:
search term FindMe
Find starter help here:
GetAllRowColIdx_By1Value.xaml (10.7 KB)
thank you !!