SpreadsheetControl.GroupStateChanged Event
Fires after row or column groups are expanded or collapsed.
Namespace: DevExpress.XtraSpreadsheet
Assembly: DevExpress.XtraSpreadsheet.v24.1.dll
NuGet Package: DevExpress.Win.Spreadsheet
Declaration
Event Data
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. |
Remarks
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):
- BeforeGroupProcessing
- GroupStateChanging
GroupStateChanged
- AfterGroupProcessing
The 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).