Posted on 2008-10-27
Last Modified: 2013-11-26

I need to change the $ Currency that is applied in the gridview when U type {0:C} in the dataformatstring. I need it to be ª.
Question by:RahnLev
1 Comment
LVL 53

Accepted Solution

Dhaest earned 500 total points
ID: 22819614
You'll need to change the current-culture in your program to the culture you need.
An example below
using System;

using System.Globalization;

using System.Threading;

public class EuroSymbolSample


   public static void Main()


      int i = 100;

      // Set the CurrentCulture to French in France.

      Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR");

      // Display i formatted as default currency for the

      //	CurrentCulture.

      // On a version of Windows prior to Windows XP, where the user

      //    has not changed the default currency to euro through

      //    Control Panel, this will default to "F".


      // Set the CurrentCulture to French in France, using the

      //    CultureInfo constructor that takes a useUserOverride

      //    parameter.

      // Set the useUserOverride value to false.

      Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR", false);


      // Display i formatted as default currency for the 

      //    CurrentCulture.

      // On a version of Windows prior to Windows XP, this will

      //    override an incorrect default setting of "F" and display

      //    the euro symbol (i).




Open in new window


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now