ASP .net GridView BoundField DataFormatString attribute not being applied

If you are trying to set a format specifier in DataFormatString attribute of ASP .Net's GridView Column (Bound Field) thorigh the designer, you might face a problem. The attribute value is not applied although you see that it has been set correctly through the designer.

Some people suggest that if you set the HTMLEncode property to TRUE, then it will do the job, but the actual solution that worked for me is to use the source instead of designer and set the correct DataFormat Specifier.


Related Posts with Thumbnails