11
Dec
.NET Tip: Using DataView.RowFilter to remove nulls
I wanted to set a filter on my DataView so rows with a null value (in my case the STATE column) would be filtered out. This is how I did it:
[csharp]dv.RowFilter = "IsNull(STATE,'null') <> 'null'";[/csharp]
Via this nice article on ADO.NET expressions.