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.SelectNode(TreeListNode) Method

Selects the specified node. This method is in effect only when multi-node selection is available. Otherwise, assign a required node to the FocusedNode property.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public void SelectNode(
    TreeListNode node
)

#Parameters

Name Type Description
node TreeListNode

A node to select.

#Remarks

If multiple selection in the current TreeList is made by node (the TreeListOptionsSelection.MultiSelectMode property is set to RowSelect), the SelectNode method selects the specified node (the node is added to the TreeList.Selection collection). If multiple selection is made by cell (TreeListOptionsSelection.MultiSelectMode equals CellSelect), the SelectNode method selects all cells of the specified node.

See Also