Syncfusion.SfDataGrid.XForms
Example 

GroupCollapsing Event (SfDataGrid)

Occurs when a group is being collapsed in SfDataGrid.
Syntax
public event GroupChangingEventHandler GroupCollapsing
Event Data

The event handler receives an argument of type GroupChangingEventArgs containing data related to this event. The following GroupChangingEventArgs properties provide information specific to this event.

PropertyDescription
(Inherited from System.ComponentModel.CancelEventArgs)
Gets the corresponding group that is being expanded or collapsed in view.  
Gets the original reporting source that raising this event (Inherited from Syncfusion.SfDataGrid.XForms.GridCancelEventArgs)
Remarks
You can cancel or customize the group being collapsed through GroupChangingEventArgs arguments. This event will not raise when the group is collapsed programmatically.
Example
dataGrid.GroupCollapsing += DataGrid_GroupCollapsing;
            
void DataGrid_GroupCollapsing (object sender, GroupChangingEventArgs e)
{
//You can achieve your requirement here.
}
AssemblyVersion

Syncfusion.SfDataGrid.XForms: 16.4451.0.52

See Also