CurrentCulture not applyed on format datacolumn

3 posts, 1 answers
  1. Dario Concilio
    Dario Concilio avatar
    153 posts
    Member since:
    Apr 2016

    Posted 05 Oct 2016 Link to this post

    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. Answer
    Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    446 posts

    Posted 07 Oct 2016 Link to this post

    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.
  3. Dario Concilio
    Dario Concilio avatar
    153 posts
    Member since:
    Apr 2016

    Posted 12 Oct 2016 in reply to Dilyan Traykov Link to this post

    Ok, I see.

    Thank you.

Back to Top