Tomas
Tomas

Reputation: 18107

ASP.NET MVC 3 helper to render table

I am new to ASP.NET MVC and would like to know is here any helper which could help to render simple table? For example I call @Html.DisplayTableFor(model) and helper takes all model properties and render them as html table.

Upvotes: 3

Views: 3333

Answers (1)

Thanigainathan
Thanigainathan

Reputation: 1547

You can use the webgrid option:

@{
    var grd = new WebGrid(options);
}
@grd.GetHtml();

You can find a tutorial here:

Upvotes: 2

Related Questions