event that fires when user removes a group

3 posts, 0 answers
  1. Gibran
    Gibran avatar
    5 posts
    Member since:
    Feb 2015

    Posted 12 Aug 2015 Link to this post

    If you have a look at http://www.telerik.com/help/winforms/gridview-grouping-basic-grouping.html, it talks about the grouping feature that comes with the RadGridView.

    I would like to know if there is an event that fires when the user removes a group (clicks on the X in the top right corner of a group). Is there such an event?

  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 13 Aug 2015 Link to this post

    Hello Gibran,

    Thank you for writing.

    The GroupByChangedGroupByChanging events will fire when the grouping is changed. The following snippet shows how you can determine if a group is removed:
    void radGridView1_GroupByChanged(object sender, Telerik.WinControls.UI.GridViewCollectionChangedEventArgs e)
    {
        if (e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.Remove)
        {
     
        }
    }

    Detailed information is available here: Events.

    Do not hesitate to contact us if you have other questions.
     
    Regards,
    Dimitar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Gibran
    Gibran avatar
    5 posts
    Member since:
    Feb 2015

    Posted 13 Aug 2015 in reply to Dimitar Link to this post

    Thanks Dimitar, this works.
Back to Top