I have a grid column defined as DateTime. If I attempt to set a cell to a value of 0001-01-01 (eg. 1st of January 0001) then the value displays as Null.
My code is:
c.Value = CDate(dataval) ‘ dataval is a string variable with value ‘0001-01-01’
At the end of this:
c.Value is Date: #12:00:00 AM#
c.GetDisplayText is “NULL” (which is the value of c.NullText)
0001-01-01 is a valid date and should display OK in the grid.
Phil.
Imported from legacy forums. Posted by Phil (had 1898 views)