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.
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
Thanks, will try this.
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
Please login first to submit.