Hello,
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
or LINQ
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 ?
@Fira2
find starter help here:
inputdata:
search term FindMe
Result:
Find starter help here:
GetAllRowColIdx_By1Value.xaml (10.7 KB)
1 Like
thank you !!