Syncfusion.SfListView.XForms
Example 

GroupExpanding Event (SfListView)

Occurs when a group is being expanded.
Syntax
public event GroupExpandCollapseChangingEventHandler GroupExpanding
Event Data

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

PropertyDescription
(Inherited from System.ComponentModel.CancelEventArgs)
Gets a list that corresponding groups being expanded or collapsed in view.  
Remarks
The GroupExpanding event is a cancelable event and can be canceled by handling the event and setting the Cancel property to true. However, if the event is canceled, the group expanding process for the tapped GroupHeaderItem gets cancelled. Also, we can customize the group being expanded through GroupExpandCollapseChangingEventArgs event argument.
Example
The following example demonstrates how to wire the group expanding event in SfListView.
listView.GroupExpanding += ListView_GroupExpanding;
            
private void ListView_GroupExpanding(object sender, GroupExpandCollapseChangingEventArgs e)
{
   if (e.Groups[0] == listView.DataSource.Groups[0])
       e.Cancel = true;
}
AssemblyVersion

Syncfusion.SfListView.XForms: 17.2451.0.34

See Also