0

有没有办法让单元格中的文本居中?

   grid.Column("TotalSum", "Total Sum", format: (item) => item.TotalSum.ToString("#,0.00"))

谢谢!

4

1 回答 1

2

我发现!

 grid.Column("TotalSum", "Total Sum", format: (item) => item.TotalSum.ToString("#,0.00"),style: "CenteredNumbers")

并添加到 CSS

.CenteredNumbers
{
    text-align:center;    
}
于 2012-07-04T13:16:02.940 回答