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

Export to excel

1 Answer 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Deepan Chakravarthy
Top achievements
Rank 1
Deepan Chakravarthy asked on 20 May 2010, 08:31 AM
Hi
  I use Export to excel for a rad grid.It exports all the columns. I dont want to export  all the columns .Is there any way to filter them and export only required column ?.

Regards
Deepan

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 20 May 2010, 08:55 AM
Hello Deepan,

You can easily hide the unwanted columns by setting their Visible property to false.
protected void Button1_Click(object sender, EventArgs e)
{
   RadGrid1.MasterTableView.GetColumn("ColumnName").Visible = false;
   RadGrid1.MasterTableView.ExportToExcel();
}

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
Deepan Chakravarthy
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or