我正在使用VB.NET中的MVC3开发一个Web应用程序.
我在使用以下操作链接在webgrid上设置列时遇到困难
编辑| 细节| 删除
@*@Html.ActionLink("Edit", "Edit", New With {.id = currentItem.PrimaryKey}) |
@Html.ActionLink("Details", "Details", New With {.id = currentItem.PrimaryKey}) |
@Html.ActionLink("Delete", "Delete", New With {.id = currentItem.PrimaryKey})*@
Run Code Online (Sandbox Code Playgroud)
我试过使用下面的语法,但我得到一个错误,其中未声明项目.
grid.Column(header:="",format:=(item)=> item.GetSelectLink("Custom Text"))
如何引用webgrid中的当前行或项目以使其工作?
任何帮助非常感谢.
问候
詹姆士