loads of useful information, examples and tutorials pertaining to web development utilizing asp.net, c#, vb, css, xhtml, javascript, sql, xml, ajax and everything else...


Advertise Here
C-Sharpener.com - Programming is Easy!  Learn Asp.Net & C# in just days, Guaranteed!

Exporting a Gridview to Excel

by naspinski 3/14/2008 12:00:00 AM

Matt Berseth supplies an awesome way to export to excel with pretty much no hassle whatsoever

Just add in his class and call it withing as event like this 

GridViewExportUtil.Export("save_as_this.xls", this.GridViewName);
And that is it, nothing else is necessary. And the code is very simple and easy to follow. Here is the link to Matt's site with more details on it.

Related posts

Comments are closed