Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeList.SetFocusedNode(TreeListNode) Method

Sets focus to a specific node within the current TreeList control.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

public virtual int SetFocusedNode(
    TreeListNode node
)

#Parameters

Name Type Description
node TreeListNode

The node to set focus on.

#Returns

Type Description
Int32

The index of the focused node among visible nodes.

#Remarks

If the node specified by the node parameter is invisible, then the node owning the required node as a child node is expanded.

See Also