I want to build an WebGrid with editable checkbox on some fields. I´m trying with no success:
@{
WebGrid grid = new WebGrid(source: Model, rowsPerPage: 25, canPage: true, canSort: true, defaultSort: "GroupName");
}
@grid.Pager();
@grid.GetHtml(tableStyle: "gridTable", headerStyle: "gridHead", footerStyle: "gridFooter", alternatingRowStyle: "gridAltRow", selectedRowStyle: "gridSelRow", rowStyle: "gridRow",
columns: grid.Columns(
grid.Column("GroupName", "GROUP", canSort: true),
grid.Column("ScreenName", "SCREEN", canSort: true),
grid.Column("CanDelete", "DELETE", canSort: true, format: @<text>@Html.EditorForModel(item.CanDelete)</text>))
))
And my Viewmodel:
public class ViewModel ...
Go to the complete details ...