C # DataTable.Select () - how to format filter criteria?
2 answers
This should work fine, but it won't return the lines where it processed
is null
.
To enable null, try this:
DataRow[] rows = myDataTable.Select("isnull(processed, false) <> true");
SQL null is undefined. It is not equal to a boolean value true
, but it is also not equal to true. (See Null (SQL) .)
For a link to a generic filter expression, see the DataColumn.Expression
MSDN topic .
+5
source to share