【发布时间】:2015-08-17 07:07:17
【问题描述】:
//this is my web grid
using (Html.BeginForm())
{
<div id="content">
@grid.GetHtml(
tableStyle: "webgrid-table",
headerStyle: "webgrid-header",
footerStyle: "webgrid-footer",//properties
alternatingRowStyle: "webgrid-alternating-row",//this are the
rowStyle: "webgrid-row-style",
columns: grid.Columns(
grid.Column(header: "job_id", format: @<text><div>@(item.WebGrid.Rows.IndexOf(item) + 1)</div></text>),
grid.Column(columnName: "location", header: "location"),
grid.Column(columnName: "jobtitle", header: "jobtitle"),
grid.Column(columnName: "technology", header: "technology"),
grid.Column(columnName: "job_description", header: "job_description"),
grid.Column(columnName: "category", header: "category"),
//this is link for navigating to next page with selected id
grid.Column(columnName: "Apply",format:@<text>@Html.ActionLink("Apply", "JobDetails", "Client")</text>)
))
</div>
}
【问题讨论】:
标签: asp.net-mvc-3 asp.net-mvc-4 webgrid