Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
WebDataGrid editing + localization issue
posted

Normal 0 false false false RU X-NONE X-NONE

Hi,

 

I have edited WebDataGrid localization issue. My Page.OnInit sets the current culture as follows:

 

System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("de-DE");

 

DateTime and Numeric values are displayed OK:

 

13.02.2000          81796,50

16.12.2007          232995,00

22.06.2005          1340,00

09.09.2009          23456,50

 

Then I edit those values. After exit from editing mode WebDataGrid displays the edited values ignoring localization settings:

 

13/02/2000         81796.50

16.12.2007          232995,00

22.06.2005          1340,00

09.09.2009          23456,50

 

The way of current culture setting makes no matter. For example, the following code leads to the same result:

 

System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("de-DE");

 

I use the standard WebDateChooserProvider and WebNumericEditProvider

 

Explicit assigning WebDateChooserProvider.Culture and WebNumericEditProvider.Culture makes no matter too

 

thanks