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

Export Column Groups Text in Excel

1 Answer 137 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 25 Sep 2018, 03:57 AM

Hi again,

I'm new to working with column groups in Telerik.

I wanted to export my grid, but I can't show column group text in the output excel file.

 

I tried simple usage of exporter:

var excelML = new Telerik.WinControls.UI.Export.ExportToExcelML(grid);
excelML.RunExport(filedialog.FileName);

 

but I don't know how to customize it

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 25 Sep 2018, 09:41 AM
Hi Muhammad,

The ColumnsGroupViewDefinition is not supported by the ExportToExcelML class. The preferred way to export the grid is to use the GridViewSpreadExport and GridViewSpreadStreamExport classes. The synchronous export method of the new spread export engine also supports ColumnsGroupViewDefinition. More information is available here: https://docs.telerik.com/devtools/winforms/gridview/exporting-data/spread-export.

I hope this will help. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.

Tags
GridView
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or