Nov 20, 2015 at 8:25 PM
Edited Nov 20, 2015 at 8:26 PM
You can probably do this with a helper.
I have a helper like this:
@helper CurrencyCode(string db, decimal price)
This takes a string for a DB and a price and sends back the price with a dollar sign in all other cases except PERU which uses "S/."
My grid has this:
.RenderValueAs(o => HtmlHelpers.CurrencyCode(o.DbName, o.TotalPriceLocal));
Am pretty sure you can use the above method to render a checkbox or not. My helper file seems happy to have Html.Checkbox in it.