aspnet-devexpress-dot-web-dot-aspxtreeview-dot-expandtonode-x28-devexpress-dot-web-dot-treeviewnode-x29.md
Expands the nodes down to the specified node.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public void ExpandToNode(
TreeViewNode node
)
Public Sub ExpandToNode(
node As TreeViewNode
)
| Name | Type | Description |
|---|---|---|
| node | TreeViewNode |
The TreeViewNode object that specifies the desired node.
|
Use the ExpandToNode method, to expand nodes to the specified node.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ExpandToNode(TreeViewNode) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
if(node != null) {
NavigationTreeView.ExpandToNode(node);
node.Expanded = true;
If node IsNot Nothing Then
NavigationTreeView.ExpandToNode(node)
node.Expanded = True
See Also
Expanding and Collapsing Nodes