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

[Solved] Grid Export to PDF without a border

2 Answers 240 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 08 Jun 2009, 09:11 PM
Is there a way to remove the border lines when exporting a grid to PDF?

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Jun 2009, 04:11 AM
Hi Paul,

Try out the following code for removing cell border lines when exporting to pdf and see whether it is working as expected.

CS:
 
protected void Button2_Click(object sender, EventArgs e) 
{        
    RadGrid1.ExportSettings.IgnorePaging = true
    RadGrid1.ExportSettings.OpenInNewWindow = true
    RadGrid1.ExportSettings.ExportOnlyData = true
    RadGrid1.GridLines = GridLines.None; 
    RadGrid1.MasterTableView.GridLines = GridLines.None
    RadGrid1.MasterTableView.ExportToPdf();   

Thanks,
Shinu.
0
Daniel
Telerik team
answered on 09 Jun 2009, 06:36 AM
Hello Paul,

The outer border can be removed this way:
... 
radGrid1.MasterTableView.BorderStyle = BorderStyle.None; 
... 

Let us know if you need more information.

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.
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Daniel
Telerik team
Share this question
or