日期:2014-05-18  浏览次数:20338 次

如果实现GridView某字段的数据10000000.00显示为10,000,000.00?
如果实现GridView某字段的数据显示为带分号的会计的数值形式?例如10000000.00显示为10,000,000.00?

------解决方案--------------------
将字段格式化{0:N}
------解决方案--------------------
楼上正解

也可以用String.Format
int MyInt = 12345;

MyInt.format( "n ", null );
// Returns the exponential string "12,345.00 "

MyInt.format( "n3 ", null );
// Returns the exponential string "12,345.000 "