@model IEnumerable
@{
ViewBag.Title = "Employee Grid";
}
@{
var grid = new WebGrid(source: Model, defaultSort:"Name", rowsPerPage:3);
}Employee Grid
@grid.GetHtml(columns: grid.Columns(grid.Column("Id"), grid.Column("Name"), grid.Column("JoiningDate"), grid.Column("PAN")))
Showing posts with label Grid in mvc. Show all posts
Showing posts with label Grid in mvc. Show all posts
Tuesday, April 19, 2011
Using WebGrid in ASP.NET MVC3
Labels:
Grid in mvc,
webgrid
Subscribe to:
Posts (Atom)