Exporting data from Grid View to Excel

c# asp.net excel closedxml

556 просмотра

1 ответ

I am trying to save data from grid view to excel using ClosedXML, although I have managed to do so successfully, but it is saving only a single page of Grid view , how can I save the data of all the pages of grid view?

Автор: Aamir Shah Источник Размещён: 08.11.2019 11:15

Ответы (1)


-1 плюса

Its really easy, you just need to add datatable as a worksheet

Exact solution for your problem can be found below:

http://www.aspsnippets.com/Articles/Export-GridView-data-to-multiple-Sheets-Worksheets-of-Excel-file-in-ASPNet-using-C-and-VBNet.aspx.

Please let me know your thoughts or feedbacks

thanks karthik

Автор: Karthik Elumalai Размещён: 07.09.2016 09:21
Вопросы из категории :
32x32