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
Post a Comment