I'm trying to build a custom column for an MVCContrib grid, but an getting tripped up by the Razor syntax. Here is my code for building a custom column:
@{Html.Grid(Model).Columns(column =>
{
column.For("Data").Do(p => {
<div>@p.Name</div>
});
}).Render();
}
How do you mark the line containing the div so that Razor will treat the line as HTML?
@{Html.Grid....}
to@(Html.Grid....)
made my grid show up. Razor enclosures are strange =/ – Carnauba