How can I show Currency with Negative instead of Parentheis in ASP NET Gridview, Datagrid?

When we show the -negative values in Gridview/Datagrid, then it show in Parentheis, using below code we can show as we need to show minus sign.

We just need to add the below code in Global.asax.cs file.

 protected void Application_BeginRequest(object sender, EventArgs e)

            System.Globalization.CultureInfo culture = new System.Globalization.CultureInfo("en-us");
            culture.NumberFormat.CurrencyNegativePattern = 1;   

            System.Threading.Thread.CurrentThread.CurrentUICulture = culture;
            System.Threading.Thread.CurrentThread.CurrentCulture = culture;

Related Alrticles

FREE!!! Registration