Skip to content

SelectedItem Property

Description

Gets or sets the tree node that is currently selected in the tree view control.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property SelectedItem() As [TreeViewNode](XtremeSuiteControls~TreeViewNode.md)

Remarks

  • If no TreeViewNode is currently selected, the SelectedItem property is a null reference (Nothing in Visual Basic).
  • When you set this property, the specified node is scrolled into view and any parent nodes are expanded so that the specified node is visible.
  • When the parent node or any ancestor node of the selected node is collapsed either programmatically or through user action, the collapsed node becomes the selected node.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.