Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
Null dates in WinGrid
posted

The data I am listing in the grid has a date field that can contain null dates.  However, instead of displaying a blank cell for a null date, the grid display '1/1/0000'.  Is there any way to get the grid to display a blank cell for a null date?

The same goes for a null value in a number field.  The grid displays zeros when I would just like to have the cell blank.

 Thanks.

DynoComp

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    What kind of data source are you using? The grid should be able to display a null in a date field if the data source actually returns null. But the DateTime data type in DotNet cannot handle nulls, so what data type is the field you are looking at here? 

     

Children