How to pass model to controller on a link click from a grid column

Jul 3, 2014 at 4:17 PM
I need a link column on the grid on the click of which i need to perform some operation on the model data. Now by making column render as @html.actionlink we can call a action on a controller by passing data from the grid but cannot pass the model to the controller action(which is outside of the grid). How to achieve this?
Jul 4, 2014 at 12:10 PM
Try using RenderValueAs and Use HTML Buttont

.RenderValueAs(model =>
@<button>Edit</button>);