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:
the DataFormatString not work for the GridView BoundField problem
最新推荐文章于 2015-12-02 14:12:00 发布
