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

RadGridView culture when exporting

2 Answers 44 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alvaro
Top achievements
Rank 1
Alvaro asked on 06 Feb 2012, 12:18 PM
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.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 06 Feb 2012, 01:07 PM
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 >>
0
Alvaro
Top achievements
Rank 1
answered on 06 Feb 2012, 02:39 PM
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
Tags
GridView
Asked by
Alvaro
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Alvaro
Top achievements
Rank 1
Share this question
or