当前位置: 代码迷 >> ASP.NET >> 怎么设置gridview绑定列的DataFormatString属性
  详细解决方案

怎么设置gridview绑定列的DataFormatString属性

热度:6629   发布时间:2013-02-25 00:00:00.0
如何设置gridview绑定列的DataFormatString属性?
如何设置DataFormatString属性,使5.909090965显示为5.9090,即保留四位小数?如为负数是保留负号。

------解决方案--------------------------------------------------------
DataFormatString="{0.0000}" HtmlEncode="False"
  相关解决方案