Skip to main content
A newer version of this page is available. .
All docs
V20.2

TreeViewControl.DeleteNode(TreeListNode, Boolean) Method

Removes the specified node and optionally, all its children.

Namespace: DevExpress.Xpf.Grid

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core

Declaration

public void DeleteNode(
    TreeListNode node,
    bool deleteChildren = true
)

Parameters

Name Type Description
node TreeListNode

The node to remove.

Optional Parameters

Name Type Default Description
deleteChildren Boolean True

true to remove all child nodes; otherwise, false.

Remarks

If you set the deleteChildren parameter to false, the TreeViewControl adds child nodes of the deleted node to the collection of root nodes.

See Also