Setting property for ASP.Net percentage format
Aptegy, for which I have no doubt, is a question of nob.
I am showing multiple percentage values in a grid view in ASP.Net
I want to be able to set the NumberFormatInfo.PercentPositivePattern property , which I think I need to bring the "Globals" property in for customization?
from its default value from 0 to 1
This is the property I need to configure
I just can't figure out how to do this! :(
This will remove the space between% and numbers.
How can I do this for the whole application?
Is it possible to add code to WebConfig or?
thanks
a source to share
You can change System.Globalization.CultureInfo.CurrentCulture to whatever you want at the beginning of each request (for example, in Application_BeginRequest in global.asax).
Of course, this will affect all values displayed by your application, not just those displayed in the GridView.
a source to share