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

CurrentCulture not applyed on format datacolumn

2 Answers 53 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dario Concilio
Top achievements
Rank 2
Dario Concilio asked on 05 Oct 2016, 09:53 AM

Hi,

in my app.cs I write this code, but format of datacolumn appears in "us"

<telerik:RadGridView.Columns>
  <telerik:GridViewDataColumn DataMemberBinding="{Binding CodiceModelloCommerciale}"
                              Header="Codice" IsReadOnly="True"/>
  <telerik:GridViewDataColumn DataMemberBinding="{Binding PrezzoUnitario}" Header="Prezzo"
                              HeaderTextAlignment="Right" TextAlignment="Right" DataFormatString="C"/>
</telerik:RadGridView.Columns>

public App()
{
this.InitializeComponent();
 
Thread.CurrentThread.CurrentCulture = new CultureInfo(name: "it-IT");
Thread.CurrentThread.CurrentUICulture = new CultureInfo(name: "it-IT");
[...]

2 Answers, 1 is accepted

Sort by
0
Accepted
Dilyan Traykov
Telerik team
answered on 07 Oct 2016, 07:40 AM
Hello Dario,

In order to achieve the desired effect, you will need to set the IsLocalizationLanguageRespected property to False as suggested in this article.

Please let me know if this works for you.

Regards,
Dilyan Traykov
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Dario Concilio
Top achievements
Rank 2
answered on 12 Oct 2016, 08:29 AM

Ok, I see.

Thank you.

Tags
GridView
Asked by
Dario Concilio
Top achievements
Rank 2
Answers by
Dilyan Traykov
Telerik team
Dario Concilio
Top achievements
Rank 2
Share this question
or