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

TreeListView.DeleteNode(Int32, Boolean) Method

Removes the specified node and optionally, all its children.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public void DeleteNode(
    int rowHandle,
    bool deleteChildren
)

#Parameters

Name Type Description
rowHandle Int32

An integer value that identifies the node by its handle.

deleteChildren Boolean

true to remove all child nodes; otherwise, false.

#Remarks

If the deleteChildren parameter is set to false, child nodes are moved to the Root.

See Also