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

event that fires when user removes a group

2 Answers 76 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gibran
Top achievements
Rank 1
Gibran asked on 12 Aug 2015, 09:34 PM

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 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 13 Aug 2015, 10:01 AM
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
0
Gibran
Top achievements
Rank 1
answered on 13 Aug 2015, 02:43 PM
Thanks Dimitar, this works.
Tags
GridView
Asked by
Gibran
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Gibran
Top achievements
Rank 1
Share this question
or