C# DataView RowFilter, null value for DateTime column -


i'm trying filter on null columns (i want show rows column null), issue can't compare column null, since column of datetime value.

i following error

system.data.evaluateexception: cannot perform '=' operation on system.datetime , system.string.

this code filter

courseid in (" + courseids + ") , isnull(datebooked, 'null column') = 'null column' 

datebooked column datetime value. before isnull functioning correctly. please!

doesn't isnull return value of same type first parameter?

try datebooked null instead of isnull(datebooked, 'null column') = 'null column'.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -