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

TreeListNodeAllowEventArgs Class

Provides data for the TreeListView.NodeExpanding and TreeListView.NodeCollapsing events.

Namespace: DevExpress.Xpf.Grid.TreeList

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public class TreeListNodeAllowEventArgs :
    TreeListNodeEventArgs

#Remarks

The TreeListView.NodeExpanding and TreeListView.NodeCollapsing events occur when a node is about to be expanded or collapsed, allowing the action to be cancelled.

To cancel the action, set the event parameter’s TreeListNodeAllowEventArgs.Allow property to false. The processed node is returned by the TreeListNodeEventArgs.Node property.

To learn more, see Expanding and Collapsing Nodes .

See Also