This is a migrated thread and some comments may be shown as answers.

How to use localized (German) Number Format in RadGridView?

3 Answers 100 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 20 Jan 2014, 09:23 AM
How do I localize the number format used in RadGridView for double to German culture (1.23 is written in German culture 1,23)?

Take a very simple RadGridView like in the "Getting Started" example for RadGridView (http://www.telerik.com/help/wpf/gridview-getting-started2.html).
On a clean new VS2010 Telerik RadControls project on my German Win7 machine, the header block ("Drag a column header and drop it here ...") is displayed correctly in German ("Ziehen Sie einen Spaltenkopf auf diese Fläche ..."), but cells of columns that represent a  property of type double will not work correctly with German culture. When I enter e.g. the German value half (0,5) it will be interpreted as five (5).

How do I change this?

I already tried

            InitializeComponent();
            LocalizationManager.DefaultCulture = new System.Globalization.CultureInfo("de");

But it does not work...

3 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 20 Jan 2014, 11:37 AM
Hi Peter,

Thank you for contacting us.

I would suggest you to check this troubleshooting article for a reference.

I hope this helps.


Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Peter
Top achievements
Rank 1
answered on 20 Jan 2014, 02:14 PM
That solved it! Thank you, Yoan!
0
Mende
Top achievements
Rank 1
answered on 15 May 2014, 09:46 PM
Good evening.
For me, setting IsLocalizationLanguageRespected=False on the RadGridView solved the problem.
Cheers
Tags
GridView
Asked by
Peter
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Peter
Top achievements
Rank 1
Mende
Top achievements
Rank 1
Share this question
or