Delphi summaryGroup中的cxGrid concat列
我有一个cxGrid,如下图所示。 我想连接第二列的组标题中的文本,类似于用红色书写 你能帮帮我吗?我试图修改摘要的GetText方法中的文本,但没有找到连接函数 根据,您可以使用网格的GroupGetDisplayText方法自定义组标题中的文本。例如:Delphi summaryGroup中的cxGrid concat列,delphi,tcxgrid,Delphi,Tcxgrid,我有一个cxGrid,如下图所示。 我想连接第二列的组标题中的文本,类似于用红色书写 你能帮帮我吗?我试图修改摘要的GetText方法中的文本,但没有找到连接函数 根据,您可以使用网格的GroupGetDisplayText方法自定义组标题中的文本。例如: procedure TForm1.cxGrid1DBTableView1GroupGetDisplayText( Sender: TcxCustomGridTableItem; ARecord: TcxCustomGridRecord;
procedure TForm1.cxGrid1DBTableView1GroupGetDisplayText(
Sender: TcxCustomGridTableItem; ARecord: TcxCustomGridRecord;
var AText: string);
begin
if ARecord is TcxGridGroupRow then
AText := AText + 'Some additional text for testing'; // You can replace this with code to represent your time intervals
end;
我不确定我是否理解您的问题,您难道不知道可以使用
+
运算符连接字符串吗?您可以共享部分代码吗?