My question is if it’s possible to format decimal data type in model to have 0.00 formatting view?
Now I use “TotalSumFormatted” which is string so I cannot sort it as it happens for decimal dataype “TotalSum”…
@grid.GetHtml(
tableStyle: "grid",
headerStyle: "head",
alternatingRowStyle: "alt",
columns: grid.Columns(
grid.Column("ShowTime", "Vuelta"),
grid.Column("Visitors", "Espectadores"),
grid.Column("TotalSumFormatted", "Monto")
Yes there is way, use the
formatparameter of the Column method