Skip to main content

TcxCustomTreeList.FocusedColumn Property

Specifies the focused column.

Declaration

property FocusedColumn: TcxTreeListColumn read; write;

Property Value

Type Description
TcxTreeListColumn

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

The returned object can be a TcxTreeListColumn or TcxDBTreeListColumn class instance depending on the actual tree list column type. In the latter case, you need to cast the returned object to the TcxDBTreeListColumn class to access all available public API members.

Tip

To identify the actual tree list column type, call the returned object’s ClassName function.

Remarks

You can use the FocusedColumn property to identify the focused column or to move focus between tree list columns.

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;

Limitations

You can focus a column only if the following conditions are met:

See Also