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

RADGrid Data Exporting to Excel

1 Answer 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sri
Top achievements
Rank 1
Sri asked on 11 Nov 2011, 02:31 PM
Hi,
We have a RADGrid with check box column. While exporting the data to excel we get the check box column as boolean. We would like to hide this coulmn being exported. Can you please help us? Thanks in advance.

Regards
Sridharan

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 Nov 2011, 06:35 AM
Hello Sri,

Try the following code snippet.
C#:
protected void Export_Click(object sender, EventArgs e)
{
  RadGrid1.MasterTableView.GetColumn("CheckBoxColumn").Visible = true;
  RadGrid1.MasterTableView.ExportToExcel();
}

-Shinu.
Tags
Grid
Asked by
Sri
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or