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

GridView Export inserts a special character

1 Answer 142 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dolly
Top achievements
Rank 1
Dolly asked on 22 Jan 2018, 12:49 PM

 

I am using GridView.export() to export the gridview details in the .csv file. After export I can see some special characters inserted in the strings such as " Â" if the string consists of symbol like "<abc>". Is there any way to avoid addition of special characters while exporting? 

 

e.g.
I was trying to export a file having list of names. One of name string consists of string like  "xy<abc>z". After performing export functionality a special character gets inserted in between the name such as "xy<abc>Âz". Because of this name displayed on grid and exported file does not match.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 25 Jan 2018, 09:54 AM
Hello Dolly,

In order to modify the data that is to be exported, you can benefit from the export events that the control exposes. Since you are exporting to csv format, you can hook up to the ElementExporting event and set the Value property of the event arguments as per your needs. More information on this topic can be found in the Export Events topic.

I hope this helps.

Regards,
Stefan
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Dolly
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or