@model IEnumerable<WebApplication4.Models.Register> @{ ViewBag.Title = "getgrid"; WebGrid gridview = new WebGrid(Model, ajaxUpdateContainerId : "ajaxgrid"); } <h2>getgrid</h2> @gridview.GetHtml(columns: new[] { gridview.Column("ID"), gridview.Column("FirstName"), gridview.Column("LastName"), gridview.Column("CH",format: @<text><input name="chkbox" type="checkbox"/></text>), } ) Public ActionResult webgridview(){ list<register> li=new list<register>(); return view(li); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)