Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. @model IEnumerable<GridTest1.Models.Person>
  2. @{
  3.     ViewBag.Title = "People";
  4.     WebGrid grid = new WebGrid(Model);
  5. }
  6. <h2>People</h2>
  7. @grid.GetHtml(columns: new [] {
  8.     grid.Column("ID"),
  9.     grid.Column("FirstName"),
  10.     grid.Column("LastName")
  11. })