Skip to content

Instantly share code, notes, and snippets.

@JeremySkinner
Created December 27, 2010 11:43
Show Gist options
  • Select an option

  • Save JeremySkinner/756077 to your computer and use it in GitHub Desktop.

Select an option

Save JeremySkinner/756077 to your computer and use it in GitHub Desktop.
public class PeopleGridModel : GridModel<Person> {
public PeopleGridModel(HtmlHelper html) {
Column.For(x => html.ActionLink("View Details", "Show", new{id = x.Id}));
}
}
<%= Html.Grid(Model).WithModel(new PeopleGridModel(Html)) %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment