Articles in this section

How to overcome issues with formulas while using different regional and culture settings in WinForms Spreadsheet?

Region and culture settings


The
FormulaEngine class maintains the parsing and computation of formulas in WinForms Spreadsheet (SfSpreadsheet). By default, FormulaEngine is implemented for en-US region settings. While changing the region settings in the system, there may be a possibility of throwing an exception or error while computing formulas because of System separators (argument, decimal, date…), which vary between regions.

 

For Example, ArgumentSeparator for “en-US” and “de-DE” culture as follows,

Separator

en-US (United States)

de-DE (German)

ArgumentSeparator

   “ , ”

   “ ; ”


In German Region settings, while computing the formulas in SfSpreadsheet, you can change the
Separators of FormulaEngine like below code.

FormulaEngine.ParseArgumentSeparator = ';';
FormulaEngine.ParseDecimalSeparator = '.';
FormulaEngine.ParseDateTimeSeparator = '.';

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied