Export DataGrid to Excel in Windows Forms

G

Guest

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!
 
E

Ed Kaim

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top