@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")))
Tuesday, April 19, 2011
Using WebGrid in ASP.NET MVC3
Labels:
Grid in mvc,
webgrid
Subscribe to:
Post Comments (Atom)
Nice Demo
ReplyDeleteHi ..,
ReplyDeleteI am just new to ASP.NET MVC. If i wanted to learn the authentication in MVC from where i have to look on. Pls guide me to learn Authentication.