DataGrid to Excel... not ASP
Hi :)
I am writing a Windows application and I retrieve data from a database in a datagrid. Now I need to export the data and save it in a Excel spreadsheet with column names.
I would like to use the SaveFileDialog so the user can specify where he/she wants to save it.
I have been searching for some time, but I can only find ASP related articles.
I'm still fairly new to C#... So please help.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Oscar Rivera21 pointsPosted May 16, 2007, 10:32 AM EDT
http://support.microsoft.com/kb/302084
NeCroFire82 pointsPosted May 17, 2007, 6:33 AM EDT
Oscar Rivera21 pointsPosted May 18, 2007, 1:07 PM EDT
http://www.codeproject.com/csharp/export2excel.asp