Author: sukumarraju | Posted on: 9/24/2009 4:55:35 AM | Views : 357

Downloading CSV from DataTable

I have written source code to download GridView data as CSV file. When the download button on top of GridView is selected, all the data in Gridview is downloaded into CSV file. I am using dataTable to bind to GridView. All the data retrieved from database(stored in dataTable) is not shown in GridView. so it is not possible to provide check boxes next to column headers and provide download functionality. It is required to provide download page as explained below:

Download page functionality as below:

Selecting download button on top of GridView navigates to Download page
On Download page various columns are shown using check boxes and lable controls.
User can select the columns he/she wants to download as CSV.(data is not shown here)

I think i can use the same data table and on download page and filter based on user selected columns to download as CSV.

Please correct me on t ...

Go to the complete details ...