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

[Solved] Export Grid with some heading or information

3 Answers 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nitin Katiyar
Top achievements
Rank 1
Nitin Katiyar asked on 12 Jun 2009, 12:50 PM
Hi,
Can any one please explain, that how can we export the RadGrid with customized heading at top with rad grid data.

Thanks,
Nitin

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Jun 2009, 05:52 AM
Hi Nithin Katiyar,

Set the Caption property of grid MasterTableView in order to show heading for grid when exporting.

CS:
 
protected void Button4_Click(object sender, EventArgs e) 
    RadGrid1.ExportSettings.IgnorePaging = true
    RadGrid1.ExportSettings.OpenInNewWindow = true
    RadGrid1.ExportSettings.ExportOnlyData = true
    RadGrid1.MasterTableView.Caption = "Customized Heading"
    RadGrid1.MasterTableView.ExportToExcel(); 

Thanks,
Shinu.
0
Daniel
Telerik team
answered on 17 Jun 2009, 07:32 PM
Hello Nithin,

I'm not sure which export type you are referring to. Excel (HTML or ExcelML), PDF, CSV or Word? This will help us to provide more to-the-point answer.

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Nitin Katiyar
Top achievements
Rank 1
answered on 18 Jun 2009, 06:06 AM
Hi,

I got the solution. Export type was Excel.
I also figure out that how it works for PDF.

Thank you.

Regards,
Nitin Katiyar
Tags
Grid
Asked by
Nitin Katiyar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Daniel
Telerik team
Nitin Katiyar
Top achievements
Rank 1
Share this question
or