I'm developing a web application using MVC3 in VB.NET.
I having difficulty setting a column on the webgrid with the following action links
Edit | Details | Delete
@*@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})*@
I have tried to use syntax below but I get an error where item is not declared.
grid.Column(header:= "",format:= (item) => item.GetSelectLink("Custom Text"))
How do I reference the current row or item in a webgrid to make this work?
Any help greatly appreciated.
Regards
James