ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2014-08-18 12:46:26

[email protected]
Member
Registered: 2014-08-09
Posts: 24

Globalisation

Hi,

I would like to implement the "en-US" culture in my application.
I think I have seen it somewhere in the docu, can't find it anymore.

Peter

Offline

#2 2014-08-18 13:03:13

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: Globalisation

ReoGrid uses your default culture information which your application uses, you could change it by:

System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");

If you load a RGF file from file or stream, the culture information is specified in RGF file header, which is decided by your Windows setting. Although it could be modified by using notepad or other text editors, but it is not recommended.

<culture>en-US</culture>

In order to load correctly number formats such float and negative, it is necessary to keep using same culture to save and load a RGF file. In your case, if a non-en-US culture was stored in your RGF file I'd strongly recommend you to change your Windows culture to en-US, or edit RGF file in an English Windows, such as Virtual PC.

Last edited by Jingwood (2014-08-19 11:51:52)

Offline

Board footer

Powered by FluxBB