Videos | Podcasts

Export Button Released
AzamSharp
Published Date: 11/17/2005 8:49:20 PM
Views: 3087

Abstract:
I know you loved my article about Exporting DataGrid to Excel and I am sure that you are going to love this even better. I spent the past 1 hour to develop a simple button control that can export Datagrid or TextBox into Excel format.

 
Introduction:

I know you loved my article about Exporting DataGrid to Excel and I am sure that you are going to love this even better. I spent the past 1 hour to develop a simple button control that can export Datagrid or TextBox into Excel format. 

About the Control:

This is a very simple control which exposes two new properties:

TargetControlID:

TargetControlID is used to specify the control which is to be exported. This means that if you want to export the DataGrid whose id is DataGrid1 then simply set the TargetControlID property to DataGrid1.

FileName:

The FileName property is used to specify the name of the Excel File.

If your DataGrid consists of LinkButtons then you might not able to export using the Export Button.

Download the control and enjoy it!

 

 


download image
Similar Articles

Displaying Memory Consumption Information Using ComputerInfo

Downloading Multiple Files as a Zip File Using GridView and SharpZipLib

How to use the XML Features in SQL server 2005

Socket Programming in C#

Using Post-Build Event to Execute Unit Tests

 
 
   
 
 

Comments/Feedbacks