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

Undo The Grouping Radgridview

3 Answers 129 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Diogo Marins
Top achievements
Rank 1
Diogo Marins asked on 11 Apr 2012, 06:15 PM

Can anyone tell me
 how do I undo the grouping columns in radgridview?

Here attached a picture of my clustered grid. 


Thanks; 

3 Answers, 1 is accepted

Sort by
0
Accepted
N Mackay
Top achievements
Rank 1
answered on 12 Apr 2012, 09:26 AM
You can add and remove the Group descriptors programatically
'// Add it
Dim descriptor As New GroupDescriptor()
descriptor.GroupNames.Add("MyFieldName", ListSortDirection.Ascending)
MyRadGrid.GroupDescriptors.Add(descriptor)
 
'// Remove it
If MyRadGrid.GroupDescriptors.Count > 0 Then
      MyRadGrid.GroupDescriptors.Remove("MyFieldName")
End If

You can also loop through the collection and remove groups using RemoveAt.
0
Stefan
Telerik team
answered on 16 Apr 2012, 01:35 PM
Hello guys,

@Diogo, Norman's post is the correct way to add/remove GroupDescriptors from RadGridView. Additional information can be found here: http://www.telerik.com/help/winforms/gridview-grouping-setting-groups-programmatically.html.

@Norman, I have updated your Telerik points, for contributing to our community. 
 
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 >>
0
Carlos
Top achievements
Rank 1
answered on 27 Nov 2013, 06:32 PM
Hi guys,
 Just to keep this thread up to date.  Q3 '13.  
You can clear grouping and filters by clearing their respective descriptors:
Radgridview1.MasterTemplate.FilterDescriptors.clear()
Radgridview1.MasterTemplate.GroupDescriptors.Clear()
Tags
GridView
Asked by
Diogo Marins
Top achievements
Rank 1
Answers by
N Mackay
Top achievements
Rank 1
Stefan
Telerik team
Carlos
Top achievements
Rank 1
Share this question
or