Undo The Grouping Radgridview

4 posts, 1 answers
  1. Diogo Marins
    Diogo Marins avatar
    8 posts
    Member since:
    Mar 2012

    Posted 11 Apr 2012 Link to this post


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

    Here attached a picture of my clustered grid. 


    Thanks; 
  2. Answer
    N Mackay
    N Mackay avatar
    228 posts
    Member since:
    Dec 2010

    Posted 12 Apr 2012 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 16 Apr 2012 Link to this post

    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 >>
  5. Carlos
    Carlos avatar
    8 posts
    Member since:
    Dec 2012

    Posted 27 Nov 2013 Link to this post

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