sure ... it's no big deal 😉 I only have two columns for this viewer: First is the caption, second the ID (for Debug purposes, usually not displayed).
procedure TAppListViewer.treeviewGetText(Sender: TBaseVirtualTree;
Node: PVirtualNode; Column: TColumnIndex; TextType: TVSTTextType;
var CellText: string);
var
data: PSuperNode;
begin
try
data := treeview.GetNodeData(Node);
case Column of
0: CellText := data.obj.Caption;
1: CellText := ID2String(data.obj.ID); //btw: it's TGUID, but I leave it open for other datatypes
end;
except
end;
end;
BTW: You can also define a function in your 'IAppListItem" interface to get the string your need (e.g. function GetText(column: integer): string)