mhinze.com archive

this is an archive of the old blog, ended 6/16/08





    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.

    Leave a Reply

    You must be logged in to post a comment.

    © 2007 mhinze.com