Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法让单元格中的文本居中?
grid.Column("TotalSum", "Total Sum", format: (item) => item.TotalSum.ToString("#,0.00"))
谢谢!
我发现!
grid.Column("TotalSum", "Total Sum", format: (item) => item.TotalSum.ToString("#,0.00"),style: "CenteredNumbers")
并添加到 CSS
.CenteredNumbers { text-align:center; }