Applogies for what I have no doubt is a noob question.
I display several percentage values in a Grid View in ASP.Net
I want to be able to set the NumberFormatInfo.PercentPositivePattern Property which I think I have to bring in a Globals “property” to be able to adjust?
from its Default 0 to 1
This is the property I need to adjust
I just cannot figure out how to do it! 🙁
This will remove the space between the % and the numbers.
How can I do this for the entire application?
Can I put some code in the WebConfig or?
Thanks
You can modify the format using the DataFormatString property on the BoundField:
You can set the format to the custom format you like, according to this article:
http://msdn.microsoft.com/en-us/library/0c899ak8.aspx