Collapsing child rows automatically

2 posts, 0 answers
  1. Gonzalo
    Gonzalo avatar
    76 posts
    Member since:
    Oct 2012

    Posted 24 Feb 2012 Link to this post

    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
  2. Stefan
    Admin
    Stefan avatar
    2908 posts

    Posted 29 Feb 2012 Link to this post

    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 >>
Back to Top