Back to Devexpress

TreeList.SelectNode(TreeListNode) Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-dot-selectnode-x28-devexpress-dot-xtratreelist-dot-nodes-dot-treelistnode-x29.md

latest2.1 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
public void SelectNode(
    TreeListNode node
)
vb
Public Sub SelectNode(
    node As TreeListNode
)

Parameters

NameTypeDescription
nodeTreeListNode

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

UnselectNode(TreeListNode)

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace