Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 691
Tomas Avatar asked Jan 20 '26 23:01

Tomas


1 Answers

You can use the webgrid option:

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

You can find a tutorial here:

  • WebGrid WebHelper in ASP.NET MVC 3 RC.
like image 190
Thanigainathan Avatar answered Jan 24 '26 01:01

Thanigainathan