Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > GridView > RadGridView culture when exporting

Answered RadGridView culture when exporting

Feed from this thread
  • Alvaro avatar

    Posted on Feb 6, 2012 (permalink)

    Hi everybody,

    I am using telerik v 2.0.50727 for WPF (and i need to use this version, not any other one) and I got this "problem" when I try to export the items inside the RadGridView to Excel file: I need to export text which is in not US culture, with "á" and "ñ" for example. When I try to export it using the Export method from the RadGridView I get them changed.

    I searched for information all along the forum, I tried everything I found:

    Like...

    public PageStart()
    {
        Thread.CurrentThread.CurrentCulture = new CultureInfo("es-ES");
        Thread.CurrentThread.CurrentUICulture = new CultureInfo("es-ES");
     
        InitializeComponent();
    }

    and then trying even samples in other posts, like the one below, from LINK with the result in the picture.



    I would ask for help to you, Telerik Team, please tell me how to adapt the culture from the RadGridView and make it export correctly the words like " á-Á " and the " ñ-Ñ ".

    Thank you in advance and kind regards.

    Alvaro.

    Reply

  • Answer Didie Didie admin's avatar

    Posted on Feb 6, 2012 (permalink)

    Hello,

    What ExportFormat do you use?
    May you please export your GridView with ExportFormat.ExcelML format? 

    Regards,
    Didie
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Alvaro avatar

    Posted on Feb 6, 2012 (permalink)

    Hello Didie,

    Thanks a lot for your reply, I would never think that there it would be the problem. You saved me :)

    I owe you a dinner.

    Regards and thanks a lot,
    Alvaro

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > GridView > RadGridView culture when exporting
Related resources for "RadGridView culture when exporting"

WPF Grid Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]