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

[Solved] CollapsAndExpand all

2 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
pradeep k
Top achievements
Rank 1
pradeep k asked on 17 Nov 2009, 12:00 PM
Hi All,

In heirarchy grid hot to expanl all, by c# code.

Please help me regarding this.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Nov 2009, 12:08 PM
Hello Pradeep,

You can try setting the HierarchyDefaultExpanded property of the ownertableview to true. Here's an example:
c#:
protected void Button1_Click(object sender, EventArgs e) 
    { 
        RadGrid1.MasterTableView.HierarchyDefaultExpanded = true
        RadGrid1.Rebind(); 
    } 

Thanks
Princy.
0
pradeep k
Top achievements
Rank 1
answered on 17 Nov 2009, 12:25 PM
thank you.
Tags
Grid
Asked by
pradeep k
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
pradeep k
Top achievements
Rank 1
Share this question
or