What are the events fired when the group is expanded / expanding?

9 Dec 20191 minute to read

Following are the events fired when the group is expanding or expanded.

  • C#
  • //Shows the GroupExpanding event.
    
    private void gridGroupingControl1_GroupExpanding(object sender, Syncfusion.Grouping.GroupEventArgs e)
    
    {
    
    //Shows all the records in the group, which is being Expanded.
    
    foreach(Record r in e.Group.Records)
    
    {
    
    Console.WriteLine("Expanding event "+r.Info);
    
    }
    
    }
    
    
    
    //Shows the GroupExpanded event.
    
    private void gridGroupingControl1_GroupExpanded(object sender, Syncfusion.Grouping.GroupEventArgs e)
    
    {
    
    //Shows all the records in the group, which has expanded.
    
    foreach(Record r in e.Group.Records)
    
    {
    
    Console.WriteLine("Expanded event "+r.Info);
    
    }
    
    }
  • VB.NET
  • //Shows the GroupExpanding event.
    
    private void gridGroupingControl1_GroupExpanding(object sender, Syncfusion.Grouping.GroupEventArgs e)
    
    {
    
    // Shows all the records in the group, which is being Expanded.
    
        foreach(Record r in e.Group.Records)
    
        {
    
            Console.WriteLine("Expanding event "+r.Info);
    
        }
    
    }
    
    
    
    //Shows the GroupExpanded event.
    
    private void gridGroupingControl1_GroupExpanded(object sender, Syncfusion.Grouping.GroupEventArgs e)
    
    {
    
    //Shows all the records in the group, which has expanded.
    
        foreach(Record r in e.Group.Records)
    
        {
    
            Console.WriteLine("Expanded event "+r.Info);
    
        }
    
    }