C# DataView RowFilter, null value for DateTime column

后端 未结 1 1408
盖世英雄少女心
盖世英雄少女心 2021-01-28 06:30

I\'m trying to filter on null columns (I only want to show rows where the column is null), but the issue is I can\'t compare the column to a null, since the column is of DateTim

相关标签:
1条回答
  • 2021-01-28 06:55

    Doesn't isnull always return a value of the same type as its first parameter?

    Try DateBooked IS NULL instead of Isnull(DateBooked, 'Null Column') = 'Null Column'.

    0 讨论(0)
提交回复
热议问题