JVCL Help:TJvCustomDBTreeView.SelectNode

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Finds a tree node with the specified value in the Items for the data-aware tree view.


Pascal

 functionSelectNode(AMasterValue: Variant): TTreeNode;


Parameters

Parameters Description
AMasterValue: Variant Value for the node to locate in the tree.


Return Value

TTreeNode - Node located for the specified value, or Nil.


Description

SelectNode is a TreeNode function used to find a tree node with the value specified in AMasterValue in the Items for the data-aware tree view.
SelectNode calls FindNode to locate the TJvDBTreeNode in Items having a value in MasterValue that matches the value in AMasterValue. When a node cannot be located with the requested value, SelectNode tries to locate a child node in the tree with the value requested in AMasterValue in the DetailField for the component.
SelectNode cause the node to set its' selected property to True. If a node cannot be located with requested value, no action is performed.
SelectNode can be used to force the node that matched value in the underlying dataset to become the selected node.


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page