Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

in my application i wanted to export all the data in a gridview with paging enabled to excel format, how can we achieve it
any help appreciated

Thanks in advance

Ginnas
Posted
Comments
Mehdy Moini 26-Sep-13 12:25pm    
You should select all the data again because grid view select in paging mode, and you don't have all the records of data.

You don't export out of the datagridview. You export data from the database or datatable that you bound the grid to. The DGV has nothing to do with exporting data.
 
Share this answer
 
Please see this article:

Export very large data to Excel file[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900