Skip to main content

TcxCustomTreeList.FocusedNode Property

Specifies the focused node.

Declaration

property FocusedNode: TcxTreeListNode read; write;

Property Value

Type Description
TcxTreeListNode

The focused node.

The property returns nil (in Delphi) or nullptr (in C++Builder) if the Tree List control is empty or no column has focus.

Remarks

You can use the FocusedNode property to identify the focused node or to move focus between tree list nodes. The Tree List control expands collapsed parent nodes and scrolls content to display the focused node if it is collapsed or beyond the client area boundaries.

Code Example

The following SetFocusedCellValue procedure implementation changes the focused cell’s value:

procedure TMyForm.SetFocusedCellValue(AValue: Variant);
begin
  cxTreeList.FocusedNode.Values[cxTreeList.FocusedColumn.ItemIndex] := AValue;
end;
See Also