How do I handle null value for columns in the web grid?
I am using the webgrid for displaying the records in a webgrid using MVC3 asp.NET Grid.
var grid = new WebGrid(source: Model,selectionFieldName:"SelectedRow",rowsPerPage: 10, canPage: true, canSort: true, defaultSort: "Absentee.Name");
@grid.GetHtml(grid.Column("AbsEnd", "AbsEnd"))
If the AbsEnd is Null. How do I handle this to display a custom string in that column. Like value does not exist.
Sorry not to Mislead you: but this is the way to get it working:
Thanks