Re: RowViewFilter and Nulls by William
William
Wed Jan 07 14:32:18 CST 2004
Jim, you can use ISNull(MyField1, 'Null') = 'Null'
or use the negatoin. I belive you can use all of the functions that are
allowed in an expression column from the DataTable as well as IsNull.
HTH,
Bill
"Jim Heavey" <JimHeavey@nospam.com> wrote in message
news:Xns94699092982F6JimHeaveyhotmailcom@207.46.248.16...
> If you are trying to set a filter where a particulare column is null or
not
> null, how do you do this?
>
> MyDataView = string.Format("MyField1 = '{0}' and MyField2 = '{1}'",
"Fred",
> System.DbNull.Value).
>
> Would that be correct? Value.ToString()?