Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutControl.GroupExpandChanging Event

Fires when a layout group is about to be expanded or collapsed.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Behavior")]
public event LayoutGroupCancelEventHandler GroupExpandChanging

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

See Also