Solved

Help

Posted on 2008-10-27
1
123 Views
Last Modified: 2013-11-26
Hi

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 ª.
0
Comment
Question by:RahnLev
1 Comment
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 22819614
You'll need to change the current-culture in your program to the culture you need.
http://msdn.microsoft.com/en-us/library/87k6sx8t(VS.71).aspx
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".
      Console.WriteLine(i.ToString("c"));
 
      // 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).
      Console.WriteLine(i.ToString("c"));     
   }
}

Open in new window

0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error on link 14 46
Web Form VB.Net  import CSV 4 36
execute SQL Stored Procedure 1000 times from vb.net 3 33
VB.Net Report Printing Issue 3 31
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…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

813 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

19 Experts available now in Live!

Get 1:1 Help Now