TreeViewControl.ExpandToLevel(Int32) Method
Expands the parent nodes down to the specified nesting level.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.1.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
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