Tuesday, April 19, 2011

Using WebGrid in ASP.NET MVC3


@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")))

2 comments:

  1. Hi ..,

    I 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.

    ReplyDelete