The problem I have is, my search criteria is:
Row["colName"] != "abc" AND
Row["colName"] != "def" AND
Row["colName"] != "ghic" AND
Row["colName"] != "klm" AND
Row["colName"] != "xyz" AND
Row["colName"] != "mnp" etc..
in other words, after my research I found something about DefaultView
of the DataTable
and RowFilter
, but Rowfilter
seems to filter only by one value.
My situation is I need to filter by a bunch of values.
Thanks
You could use
Linq-To-DataTable
and a collection of values to exclude.Query Syntax:
Method Syntax: