Connecting Tech Pros Worldwide Forums | Help | Site Map

WTD: Simple Function to Export DataGridView to Excel

Mike Wilson
Guest
 
Posts: n/a
#1: Apr 5 '07
Dear all,

I'm sure someone has already done this, so as not to wish to re-invent the
wheel - and Google not turning up anything I can use, does anyone have a
suitable function into which I can pass a DataGridView - and have all the
columns and rows parsed and an Excel Workbook created with the DataGridView
contents and column headers transposed onto the first Worksheet?

Many thanks in advance!

Mike


mnadeem.abbasi@gmail.com
Guest
 
Posts: n/a
#2: Apr 5 '07

re: WTD: Simple Function to Export DataGridView to Excel


On Apr 5, 6:04 pm, "Mike Wilson" <liddlefeeshSorryNoS...@gmail.com>
wrote:
Quote:
Dear all,
>
I'm sure someone has already done this, so as not to wish to re-invent the
wheel - and Google not turning up anything I can use, does anyone have a
suitable function into which I can pass a DataGridView - and have all the
columns and rows parsed and an Excel Workbook created with the DataGridView
contents and column headers transposed onto the first Worksheet?
>
Many thanks in advance!
>
Mike
Check this article
http://www.codeguru.com/forum/archiv.../t-411456.html

--NA

Mike Wilson
Guest
 
Posts: n/a
#3: Apr 6 '07

re: WTD: Simple Function to Export DataGridView to Excel


<mnadeem.abbasi@gmail.comwrote in message
news:1175782215.623582.150940@n59g2000hsh.googlegr oups.com...
Quote:
On Apr 5, 6:04 pm, "Mike Wilson" <liddlefeeshSorryNoS...@gmail.com>
wrote:
Quote:
>Dear all,
>>
>I'm sure someone has already done this, so as not to wish to re-invent
>the
>wheel - and Google not turning up anything I can use, does anyone have a
>suitable function into which I can pass a DataGridView - and have all the
>columns and rows parsed and an Excel Workbook created with the
>DataGridView
>contents and column headers transposed onto the first Worksheet?
>>
>Many thanks in advance!
>>
>Mike
>
Check this article
http://www.codeguru.com/forum/archiv.../t-411456.html
Many thanks - helpful article.

M

Closed Thread