the DataFormatString not work for the GridView BoundField problem
2007-04-16 17:27
429 查看
the DataFormatString not work for the GridView BoundField problem, it is caused by the new "HtmlEncode" setting of the GridView BoundField. By default the GridView BoundField's "HtmlEncode" attribute is turn on so that the databound value on that boundfields will be htmlencoded before rendered out(for security consideration...) And in that case the DataFormatString will not work. So in your scenario, you can just turn off the "htmlencode" on that decimal databound field like:
相关文章推荐
- GridView的HyperLinkField的DataNavigateUrlFormatString如何使用自定义的变量,而不是数据库绑定的值.报错:指定的参数已超出有效值的范围。参数名: index
- GridView的HyperLinkField的DataNavigateUrlFormatString如何使用自定义的变量,而不是数据库绑定的值
- 以编程方式指定Gridview的HyperLinkField的属性DataNavigateUrlFormatString
- SAP找表的18中技巧(方法) 18 Techniques for Locating the Underlying Data of a Screen Field
- GridView中设置DataFormatString无效的解决方法.
- VO类不可见问题nresolved compilation problem。The field is not visible
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- Version Incompatibility(Ininvalid version (expected 2, but 1) or the data in not in 'javabin' format
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- Gridview利用DataFormatString属性设置数据格式
- The method setItems(String) in the type ForTokensTag is not applicable for the arguments (Object)
- GridView, DataGrid 中,DataFormatString语法汇总 - Jack @ CnBlogs - 博客园
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- 指定字符串与主题所要求的形式不符The specified string is not in the form required for a subject
- The prefix "p" for attribute "p:myservice-ref" associated with an element type "bean" is not bound.
- pydev debugger: warning: psyco not available for speedups (the debugger will still work correctly, but a bit slower)
- The prefix "tx" for element "tx:annotation-driven " is not bound
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- 用DataFormatString格式化GridView
- 解决python中TypeError: not enough arguments for format stringj