[SOLVED] How to modify globally my default currency symbol?

Answered
0
0

Hi,

 

I have several datagridview that uses C as the format character, how can I changed that according to client source? Because currently it is displaying $ symbol, and I want to display it according to client’s culture.

 

Thanks.

  • You must to post comments
Best Answer
0
0

Also please check

https://wisej.com/docs/2.0/html/Localization.htm

Wisej applies the client’s locale automatically. You can force it programmatically on the the default.json or in the URL. If you see “$” when using “C” it means that the client browser has en-US as the first language.

You can also verify or change the session’s locale using

https://wisej.com/docs/2.0/html/P_Wisej_Web_Application_CurrentCulture.htm

  • You must to post comments
0
0

Thanks, will try this.

  • You must to post comments
0
0

Hi Glenn,

You can get the client’s locale with:

            var ri = new RegionInfo(System.Threading.Thread.CurrentThread.CurrentUICulture.LCID);

            textBox1.Text = ri.CurrencySymbol;

This will put the local currency symbol in the textbox.  You might find some of the other methods of RegionInfo useful as well.

Does this work for you?

Best regards,

Levie

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.