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

Collapsing child rows automatically

1 Answer 210 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gonzalo
Top achievements
Rank 2
Gonzalo asked on 25 Feb 2012, 05:56 AM
Greetings,

How could I get the radgridview to display collapsed child rows set. In other words we have a radgridview with rows and child rows but how could we get the child rows collapsed for all initially until the user decides which one to expand.

Thanks and best regards,

G

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 29 Feb 2012, 01:52 PM
Hello Gonzalo,

Thank you for writing.

By default when binding the grid, the rows will be collapsed, if you have not used the ExpandAll method of the template. However, you can always call the CollpaseAll method of the desired template:
radGridView1.MasterTemplate.CollapseAll();           

I hope this helps. Let me know if I can be of further assistance.
 
All the best,
Stefan
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
Gonzalo
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Share this question
or