windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetcontrol-28e8c946.md
Fires after row or column groups are expanded or collapsed.
Namespace : DevExpress.XtraSpreadsheet
Assembly : DevExpress.XtraSpreadsheet.v25.2.dll
NuGet Package : DevExpress.Win.Spreadsheet
public event GroupStateChangedEventHandler GroupStateChanged
Public Event GroupStateChanged As GroupStateChangedEventHandler
The GroupStateChanged event's data class is GroupStateChangedEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Groups | Returns information about groups affected by the expand/collapse operation. |
| IsExpanded | Indicates whether groups are expanded. |
| IsRowGroup | Indicates whether a user expanded/collapsed row groups. |
The WinForms Spreadsheet control ships with a set of events that allow you to control the expand/collapse operations for row and column groups in a worksheet.
The following events occur when a user clicks a plus / minus symbol on the outline bar (or the Hide Detail / Show Detail button on the Data ribbon tab):
GroupStateChangedThe following events occur when a user clicks one of the outline buttons to expand/collapse row or column groups:
The GroupStateChanged event fires after the expand/collapse operation is completed. Event arguments allow you to determine the group state (expanded or collapsed), check the group type (row or column), and retrieve information about affected groups (Groups).
See Also