Getting gridview headers to excel sheet when using Cells.ImportGridView

Hi

I suspect that I already know the answer to my question, but I just need to make sure that I am not missing something obvious.

Is there anyway to include the column headers from a gridview when importing the GV to excel?

Br

Hans Jørgen

Hi,

Well, yes, Cells.ImportGridView method is not enhanced much, it will get pure data for records only.
I think you may try importing source DataTable(s) by using some Cells.ImportDataTable() overloads which more enhanced method and you may also get / paste field/column names with data to import data to worksheet, see the document on complete details for importing options Aspose.Cells provides:
http://www.aspose.com/docs/display/cellsnet/Importing+Data+to+Worksheets

Thank you.