transfer the contents of a datagrid to excel homaarab at 11:10 on Wednesday, May 18, 2005
Can someone give me a codeing example of how to transfer the contents of a datagrid to an excel spread sheet.
Basically i need to copy and paste the datagrid and some labels to an excel spread sheet when a button is clicked,
any ideas?
Re: transfer the contents of a datagrid to excel partha at 16:12 on Tuesday, March 10, 2009
Yes directly tou can transfer data from datagrid to Excel. Code also same for Gridview. Just write few lines under your export button will transfer exact data with formatting to excel. You can try with: