How can I set the title of a column dynamically? I've set the text for the title in a viewbag object in the controller but trying to access the viewbag from within the grid call causes the following error:
"CS1977: Cannot use a lambda expression as an argument to a dynamically dispatched operation without first casting it to a delegate or expression tree type"
.RenderValueAs(c => Html.CheckBox("cbIP1_"+c.ProductCode, c.isInPromotion1).ToHtmlString());
columns.Add(c => c.isInPromotion1)
the error occurs on the rendervalueas line...
Thanks for any help!