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

Collapsing child rows programmatically

1 Answer 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gonzalo
Top achievements
Rank 2
Gonzalo asked on 28 Feb 2012, 05:58 PM
Is there a way to program to collapse child rows in a gridview control? 

Best regards,

G

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 02 Mar 2012, 03:00 PM
Hello Gonzalo, 

Thank you for writing.

In order to collapse the expandable rows of a certain template, just call the CollapseAll method of the latter. Here is an example how to do that for the MasterTemplate:
radGridView1.MasterTemplate.CollapseAll();

I hope that you find this information useful. Let me know if you have further questions.

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