Click here to Skip to main content
15,878,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Friends

Could any one please tell me , how to save data from a devexpress gridview in asp .net. The gridview has paging enabled. But I would like to download the whole data without paging in excel format.


Thank you all.... :)
Posted

1 solution

<dx:ASPxGridViewExporter ID="gridExport" GridViewID="grdDevGridID" runat="server"></dx:ASPxGridViewExporter>


Print Button Click event

//before export want to rebind Gridview again.


C#
grdDevGridID.Datasource =Datatable;
grdDevGridID.Databind() ;
 gridExport.WriteXlsxToResponse();
 
Share this answer
 
Comments
SubhashRokzzz 29-Jul-15 0:15am    
Thankz rkganapathy.. Works fine.. :D

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