读书人

如果实现GridView某字段的数据1000000

发布时间: 2012-01-23 21:57:28 作者: rapoo

如果实现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 "

读书人网 >asp.net

热点推荐