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)?
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 = "";
}
The Boss responded, "Yes, but that is the code method...was hoping to be able to do it with a format or property in the control markup." This possible?
The code method is the best approach available. There is no property on WebGrid that will do this automatically.