Skip to main content
All docs
V24.2

TreeViewControl.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 = true
)

Parameters

Name Type Description
rowHandle Int32

The node’s row handle.

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