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

Grouping in Gridview

1 Answer 44 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 31 May 2016, 12:18 AM
Just curious how to tell if a gridview is being grouped at the time?  if it is being grouped, how to clear all grouping programmatically?

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 31 May 2016, 07:39 AM
Hello Kevin,

Thank you for writing.

You can use the GroupDescriptors collection. For example:
private void RadButton1_Click(object sender, EventArgs e)
{
    if (radGridView1.GroupDescriptors.Count >0)
    {
        radGridView1.GroupDescriptors.Clear();
    }
}

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
GridView
Asked by
Kevin
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or