@{ var g_style = new WebGrid(source: Model, rowsPerPage: 10); @g_style.GetHtml( tableStyle: "gridTable", headerStyle: "gridHead", footerStyle: "gridFooter", rowStyle: "gridRow", alternatingRowStyle: "gridAltRow", columns: g_style.Columns( g_style.Column(header: "UserName", format: @item => item.UserName), g_style.Column(header: "Role", format: @item => Html.DropDownList("Role", (IEnumerable<SelectListItem>)ViewData["Role"], "--Select--" })), g_style.Column(header: "Approve", format: @item => Html.ActionLink("Approve", "Approve", new { id = item.UserID })) )) }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)