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

TcxCustomTreeList.FocusedNode Property

Specifies the focused node.

#Declaration

Delphi
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: Override SetFocusedCellValue Procedure Implementation

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