codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  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:

http://shawpnendu.blogspot.com/2009/03/export-gridview-data-to-excelword-text.html








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: BIG file question: about median
•  Open source my OIOIC, a completely new object-oriented mechanism for the C.
•  Re: Customizable Event Calender, using C#
•  Re: transfer the contents of a datagrid to excel
•  How to focus on email field after clicking OK in alert?
•  Re: about @argv
•  Re: How to multiply and disable checkbox value in one shot
•  Re: Passing Password using $ssh->cmd
•  Re: sum of columns


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2009