Exporting to Excel from GridView

Ever have to export data from a GridView to an Excel spreadsheet?

While the overall process is fairly straightforward, there are some caveats involved when paging and column sorting are enabled. A search on the Web will lead you to several results on how to proceed (some with good but unproven ideas, many with frustrating deadends) - the best discussion/example, in my opinion, can be found here.

Note that while this is a great implementation, it didn't exactly cover my specific assignment's needs (my details/solution will be discussed in a future article on my News page). Otherwise, enjoy till the next one!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: Ron Larson
Posted on: 2/16/2008 at 2:31 AM
Categories: .NET | Web Development
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (1) | Post RSSRSS comment feed

Related posts

Comments

aditya in

Friday, April 04, 2008 8:58 AM

please try to send the entire code with demo urgently as u have posted

regading
export data from gridview to excel

Add comment


 

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

Saturday, July 05, 2008 4:53 AM