lihongchen

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

分类:

技术点:

相关文章:

  • 2021-12-18
  • 2021-12-18
  • 2022-02-10
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
相关资源
相似解决方案