Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2004

Tip: Looking for answers? Try searching our database.

Export DataGrid to Excel in Windows Forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Davy C - 17 Dec 2004 18:17 GMT
Does anyone know how to export a Windows forms datagrid to excel?
I have a datagrid and want to click a button an export the data to excel and
access.

Thanks!
Ed Kaim - 18 Dec 2004 00:31 GMT
The easiest way would be to export the values in comma separated value (CSV)
format.

I don't have code on hand, but there is an ASP.NET sample (which will need
to be changed for a client app) at
http://www.netomatix.com/GridExportToCSV.aspx. I haven't tried this code, so
you could search MSN or Google for more.

> Does anyone know how to export a Windows forms datagrid to excel?
> I have a datagrid and want to click a button an export the data to excel
> and
> access.
>
> Thanks!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.