Back to Devexpress

SpreadsheetControl.GroupStateChanged Event

windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetcontrol-28e8c946.md

latest3.7 KB
Original Source

SpreadsheetControl.GroupStateChanged Event

Fires after row or column groups are expanded or collapsed.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.XtraSpreadsheet.v25.2.dll

NuGet Package : DevExpress.Win.Spreadsheet

Declaration

csharp
public event GroupStateChangedEventHandler GroupStateChanged
vb
Public Event GroupStateChanged As GroupStateChangedEventHandler

Event Data

The GroupStateChanged event's data class is GroupStateChangedEventArgs. The following properties provide information specific to this event:

PropertyDescription
GroupsReturns information about groups affected by the expand/collapse operation.
IsExpandedIndicates whether groups are expanded.
IsRowGroupIndicates 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):

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).

See Also

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.XtraSpreadsheet Namespace