mvc中的webgrid操作列

时间:2018-11-04 05:50:07

标签: asp.net-mvc grid webgrid

我有一个MVC Webgrid,它在两个单独的列中具有编辑和删除操作按钮,如何将这两个按钮放在一起并放在一个列中?

<div> 
    @wg.GetHtml(tableStyle:="table table-bordered table-hover", mode:=WebGridPagerModes.All,
             htmlAttributes:=New With {.id = "wg1", .class = "Grid"},
             firstText:="<<",
             lastText:=">>",
             footerStyle:="table-pager",
             columns:=wg.Columns(wg.Column("Name", "عنوان"),
             wg.Column(format:=Function(item) Html.ActionLink(" Edit ", "BrandEdit", New With {.id = item.id}, htmlAttributes:=New With {.class = "glyphicon glyphicon-edit btn btn-success btn-sm"})),
            wg.Column(format:=Function(item) Html.ActionLink(" Delete ", "BrandDelete", New With {.id = item.id}, htmlAttributes:=New With {.class = "glyphicon glyphicon-remove btn btn-danger btn-sm"}))))
</div>

0 个答案:

没有答案