Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Exporting Gridview (ASP.NET 2.0) to Excel?

I found an article telling me how to do it:
http://gridviewguy.com/ArticleDetails.aspx?articleID=86

... but I just can't make it work. I think my biggest problem is that I am not sure how to override the rendering method as they indicate there. Not sure where to add that line and how to convert it to vb.net.

background... I have a Data Adaptar (created in code) that is populating a dataset that is then bind to the GridView... I want to add a button that I will allow the user to click and create an Excel spreadsheet with the same contents of the GridView

Any help would be greatly appreciated

Thanks

Bryan
[664 byte] By [bjbenoit] at [2007-11-11 7:45:29]
# 1 Re: Exporting Gridview (ASP.NET 2.0) to Excel?
Have you tried contacting the author of the article? There are also some good free sites for converting C# to VB, and vice-versa. This is my favorite: http://www.carlosag.net/Tools/CodeTranslator/
Phil Weber at 2007-11-11 21:48:36 >