LayoutControl.GroupExpandChanging Event
Fires when a layout group is about to be expanded or collapsed.
Namespace: DevExpress.XtraLayout
Assembly: DevExpress.XtraLayout.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Event Data
The GroupExpandChanging event's data class is LayoutGroupCancelEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Cancel | Gets or sets whether to cancel the current operation. |
Group | Gets the group currently being processed. Inherited from LayoutGroupEventArgs. |
Remarks
The GroupExpandChanging event is raised when a Layout Groups‘s expanded state is about to be changed. This occurs when an end-user attempts to expand/collapse the group or the value of its LayoutGroup.Expanded property is being changed in code.
The processed layout group is identified by the event’s Group parameter. The Cancel parameter controls whether the operation is allowed. To prevent the layout group from being expanded/collapsed, set the Cancel parameter to true.