I outputted Actionlink, in WebGrid, with dynamic link text, and the only way to get it working:
Grid.Column(header: "Subject", columnName: "Message.Subject", format:(item) => Html.ActionLink(((object)item.Message.Subject).ToString(), "Message", new {Id = 12345 }))
Is there anyone better way to do this?
source
share