I need some help with a linq query.
Basically, I have a datatable with some columns being enumerated as datarows. I need to get all the rows that match a string[][]. Example below.
string[0][0] = ColumnHeader1
string[0][1] = Hello
string[1][0] = ColumnHeader2
string[1][1] = World
Thus, I need to return all the rows that have ColumnHeader1 CONTAINING “Hello” AND ColumnHeader2 CONTAINING “WORLD”.
Any ideas to get me started?
Here’s an idea applied to a DataTable:
If you are enumerating a DataRow, you can use something like this: