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.
Also please check
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
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?
Please login first to submit.