All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

TreeViewControl.ExpandToLevel(Int32) Method

Expands the parent nodes down to the specified nesting level.

Namespace: DevExpress.Xpf.Grid

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

Declaration

public void ExpandToLevel(
    int level
)
Public Sub ExpandToLevel(
    level As Integer
)

Parameters

Name Type Description
level Int32

The required nesting level.

Remarks

The following code sample expands all root nodes.

<dxg:TreeViewControl x:Name="treeViewControl"
                     Loaded="treeViewControl_Loaded"
                     .../>
void treeViewControl_Loaded(object sender, System.Windows.RoutedEventArgs e) {
    treeViewControl.ExpandToLevel(0);
}
See Also