@grid.GetHtml(
tableStyle:"grid",
headerStyle:"head",
alternatingRowStyle:"alt",
columns:grid.Columns(
grid.Column(null,"操作",format:(item)=>Html.ActionLink("Edit","Edit",new {id=item.id}) ),
grid.Column("title","标题",null,null,false)
)
)
grid.Column(null, "操作", format: @<span><span>@Html.ActionLink("Edit", "Edit", new { id = item.LogID })</span><span>@Html.ActionLink("Delete", "Delete")</span></span>)
我这样写的,不知道还有没有更好的写法