1. SQL 数据库里类型改为numeric,小数位设置成2
2. 在SQL语句中转换:select convert(字段,numeric(18,2)) AS 字段
3. 在DataFormatString的绑定列的属性中设置为
<asp:BoundColumn DataField="字段" DataFormatString ="{0:f2}" />

posted on 2014-06-05 10:04  随心所意  阅读(6041)  评论(0编辑  收藏  举报