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!