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

BeforeExpandEventArgs.CanExpand Property

Gets or sets whether a Tree List node can be expanded.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

public bool CanExpand { get; set; }

#Property Value

Type Description
Boolean

true if a Tree List node can be expanded; otherwise, false.

#Remarks

If the CanExpand property is set to false, a node is not allowed to be expanded, and its child nodes will not be visible. The CanExpand property doesn’t affect the appearance of the node’s expand button.

See Also