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
165
Need default date treated as null
posted

We're using a grid where we display a "due date," which if not specifically set, displays a "default" (1/1/2000, I think). Is there a way to trick the grid into treating this date as "null" for display purposes (so that it will not display)?

Parents
No Data
Reply
  • 546
    Suggested Answer
    posted

    One way is you use InitializeRow Event.

     

    protected void UltraWebGrid1_InitializeRow1(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs  e)

    if(e.Row.Cells.FromKey("ColumnName").Text == "1/1/2000")

    e.Row.Cells.FromKey("ColumnName").Text = "";

    }

     

     

     

     

Children