This is a migrated thread and some comments may be shown as answers.

Export data

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Devi
Top achievements
Rank 1
Devi asked on 06 Oct 2008, 06:03 AM
Export rad grid to excel sheet using C#

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Oct 2008, 09:55 AM
Hi Devi,

Try the following code snippet to export the Grid to Excel.

CS:
 protected void Button1_Click(object sender, EventArgs e) 
    { 
        RadGrid2.ExportSettings.IgnorePaging = true
        RadGrid2.ExportSettings.OpenInNewWindow = true
        RadGrid2.MasterTableView.ExportToExcel(); 
    } 


Thanks
Shinu
Tags
Grid
Asked by
Devi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or