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

Hide Expand, Group column in Detailstable

1 Answer 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pdd
Top achievements
Rank 1
Pdd asked on 01 Jul 2008, 11:33 PM
Hi,

how do I hide the expand column and the group column when exporting detail table  (in hierarchy radgrid) to excel? I can hide the columns in Mastertableview but in detail tables, they are still there.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Jul 2008, 10:49 AM
Hi Pdd,

Try setting the ExportOnlyData Property to true in the  Export Button click event.

CS:
 protected void Button2_Click(object sender, EventArgs e) 
    { 
        RadGrid1.ExportSettings.ExportOnlyData = true
        RadGrid1.ExportSettings.OpenInNewWindow = true
        RadGrid1.MasterTableView.ExportToExcel(); 
    } 



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