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

GridCheckBoxColumn value not export

1 Answer 191 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marie-Eve
Top achievements
Rank 1
Marie-Eve asked on 26 Mar 2009, 02:00 AM
Hi,

I have one GridCheckBoxColumn in my grid and when i export to excel or word, i don't have the value of the GridCheckBoxColumn.

How can i export the value of a GridCheckBoxColumn?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 26 Mar 2009, 03:50 AM
Hi,

The GridCheckBoxColumn in Telerik RadGrid have CheckBox in their cells. They are not considered as data, that is why when you select the second parameter of the ExportToExcel method to be true, those CheckBoxes will be stripped from the resulting Excel file. One suggestion will be to use a GridBoundColumn where you can represent the boolean value with a Yes/No. Hide the column in the Grid (setting its Visible property to false), then switch its visibility with the one for the GridCheckBoxColumn, and finally export it to Excel calling Telerik RadGrid's ExportToExcel method.

More details you can get from here.
Exporting tips and tricks

Thanks
Shinu
Tags
Grid
Asked by
Marie-Eve
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or