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
4110
Empty Date format in UltraWebGrid
posted

I have an Ultrawebgrid (can't migrate to WebDataGrid for this yet) with a date column. The Date field is initialized in the InitializeLayout method as such

        With e.Layout.Bands(0).Columns.FromKey("DUE_DATE")
            .Header.Caption = "Due Date"
            .DataType = "System.DateTime"
            .Format = "MM/dd/yyyy"
            .Header.Style.HorizontalAlign = HorizontalAlign.Center
            .CellStyle.HorizontalAlign = HorizontalAlign.Center
        End With

When the date is empty(they are not null, empty dates are returned as " ") the date shows as 01/01/0001. I want the date to be empty in this case instead of the pseudo-date. Is there a way to do this in the initialize method or do i have to iterate the grid after it is databound and change it?