Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to export a table to excel?

How to export a table to excel?

Scheduled Pinned Locked Moved ASP.NET
databasealgorithmstutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    steven_wong
    wrote on last edited by
    #1

    Hello, everyone: Now i want to export my query result to excel. At first, i have tried to export the results displayed through datagrid directly to excel. However, the amount of query result is quite large, in this case i decide to use page sorting datagrid. but most articles in CP tell us how to export only one page to excel, not all the datatable. Therefore, is there any better approach to export all the datatable directly to excel? Any idear will be appreciated! Thanks in advance!

    R 1 Reply Last reply
    0
    • S steven_wong

      Hello, everyone: Now i want to export my query result to excel. At first, i have tried to export the results displayed through datagrid directly to excel. However, the amount of query result is quite large, in this case i decide to use page sorting datagrid. but most articles in CP tell us how to export only one page to excel, not all the datatable. Therefore, is there any better approach to export all the datatable directly to excel? Any idear will be appreciated! Thanks in advance!

      R Offline
      R Offline
      Ramasubramaniam
      wrote on last edited by
      #2

      The above link will solve you problem, very nice code and easy to use. http://www.codeproject.com/csharp/datasettoexcel.asp Ram

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups