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

how to avoid grid column when exporting to pdf

1 Answer 144 Views
Grid
This is a migrated thread and some comments may be shown as answers.
chennaiah P
Top achievements
Rank 1
chennaiah P asked on 20 Mar 2010, 08:26 AM

Hi
    i am exporting radgrid, i need to exclude pirticula column..how do i do that?

Regards
chennaiah

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 22 Mar 2010, 08:55 PM
Hello Chennaiah,

In most cases you can merely hide the column before export:
protected void Button1_Click(object sender, EventArgs e)
{
    RadGrid1.MasterTableView.GetColumn("MyUniqueColumnName").Visible  = false;
    RadGrid1.MasterTableView.ExportToPdf();
}

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
chennaiah P
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or