Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JeremySkinner/503229 to your computer and use it in GitHub Desktop.
Save JeremySkinner/503229 to your computer and use it in GitHub Desktop.
@Html.Grid(Model).Columns(column => {
column.Custom(
@<div>
<em>Hello there</em>
<strong>@item.Name</strong>
</div>
).Named("Custom Column");
})
<% Html.Grid(Model).Columns(column => {
column.For("My Custom Column").Action(x => { %>
<div>
<em>Hello there</em>
<strong><%= x.Name %></strong>
</div>
<% });
})
.Render();
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment