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

Group will not collaspe

3 Answers 20 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Claude
Top achievements
Rank 1
Claude asked on 27 Sep 2012, 05:42 PM
I have 5 groups in a radGridView and I want all groups collasped on form load.  However, Group[0] will not collaspe.  All other are collasped.

this.radGridView3.Groups[0].Collapse();
this.radGridView3.Groups[1].Collapse();
this.radGridView3.Groups[2].Collapse();
this.radGridView3.Groups[3].Collapse();
this.radGridView3.Groups[4].Collapse();

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 29 Sep 2012, 09:52 AM
Hello Claude,

Thank you for writing.

Can you please try the following code in your application and see if it will work:
protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);
 
    foreach (DataGroup item in radGridView1.Groups)
    {
        item.Collapse();
    }
}

If this does not work for you, please open a new support ticket where you can provide us with the project where this behavior appears, and we will look into it for you.
 
Greetings,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Daniel
Top achievements
Rank 1
answered on 01 Aug 2014, 05:04 PM
Hello,

This still does not work.

Regards,

Dan Ludwig
0
Stefan
Telerik team
answered on 04 Aug 2014, 06:51 AM
Hello Daniel,

Thank you for writing.

The provided code works as expected on my end. If you continue experiencing issues, please open a support ticket and attach a sample where the undesired behavior can be reproduced. Out technical support staff will review the precise case and help you with it.

I hope that you find this information useful.

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Claude
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or