I have a datatable with Multiple Columns. I am trying to extract a row that matches multiple conditions. My code for the same is
var filtered = Results.AsEnumerable()
.Where(r => r.Field<String>("Suite").Contains(Suite_Name)
&& r.Field<String>("Case").Contains(Case_Name)
&& r.Field<String>("Name").Contains(Word.Name));
I have opened the data table and there are rows that matches the exact values that are passed as input but still it does not return any values. Is there anything that I am doing wrong ?