Thanks for reading
When we add a webgrid column format on cshtml file, we often write code as below:
grid.Gethtml(columns:grid.Columns(grid.Column(format:(item)=>new HtmlString(Ajax.ActionLink("Next","someAction","someControllerName", new{....},new AjaxOptions{......})).ToString())))
now I want to create a webGridColumn list in .cs file, when I was adding column format, I could not make through. this is my code below:
WebGridColumn column = new WebGridColumn();
column.Format=(item=> new HtmlString(AjaxExtensions.ActionLink(thisAjaxHelper....).ToString());
we need a AjaxHelper here, but how can I get a instance or create one. Please teach me
loveslut