1

I am new in JSON mode. I am trying to bind such format to model but it does not work. Anyone know this issue?

.Column(col =>
{
    col.Add(c => c.Freight).Format("{0:$####.##}").HeaderText("Doller");
    col.Add(c => c.Freight).Format("{0:####.## GBP}").HeaderText("GBP");
    col.Add(c => c.Freight).Format("{0:$####.## JPY}").HeaderText("JPY");
    col.Add(c => c.Freight).Format("{0:####.##}").HeaderText("Rupees");
}
4

1 回答 1

0

尝试这个

.Column(col => {
col.Add(c => c.Freight).Format("{$####.##}").HeaderText("Doller");
col.Add(c => c.Freight).Format("{####.## GBP}").HeaderText("GBP");
col.Add(c => c.Freight).Format("{$####.## JPY}").HeaderText("JPY");
col.Add(c => c.Freight).Format("{####.##}").HeaderText("Rupees"); }
于 2013-06-03T09:31:42.443 回答