Skip to main content

Example: Column.OnGetDisplayText

The following sample uses the OnGetDisplayText event. The event handler changes the category value of group nodes.

procedure <Form>.<Column>GetDisplayText(Sender: TcxTreeListColumn;
  ANode: TcxTreeListNode; var Value: String);
begin
  if ANode.IsGroupNode then
// adding the number of the first level child nodes
    Value := Value + ' (' + IntToStr(ANode.Count) + ')';
end;