I have to display if the Grid column value is "true" then "Yes" else "No". Tried in WebGrid
but throwing me error in the GridColumn
in View.
//Code:
grid.Column("SelectedStatus", header: "Selected Status", Model.SelectedStatus==true ? Html.Raw("Yes"): Html.Raw("No"))
When i tried to use format:
in the column it is throwing me "Invalid arguments"
error.
Where i'm wrong?