How to import with header text instead of column dataSource name

Hi.

How to export to excel from a datagridview with header text as sheet's header instead of columns dataSource names ?



1 Reply

MC Mohan Chandran Syncfusion Team August 26, 2021 06:15 AM UTC

Hi Jose, 

Greetings from Syncfusion. 

Please refer to the UG documentation from the below link to export DataGridView to Excel with headers. 


Note : You need to set isImportHeader parameter as true in ImportDataGridView method. 

Regards, 
Mohan. 


Loader.
Up arrow icon