mimou_2009
mimou_2009

Reputation: 47

cxGrid concat column in summaryGroup

I have a cxGrid, as below in the picture. I want to concatenate text in the group header of the second column, something like written in red.

Could you please help me? I tried to modify text in the GetText method for the summary, but I didn't find a concatenate function.

enter image description here

Upvotes: -1

Views: 1086

Answers (1)

Greg Bishop
Greg Bishop

Reputation: 529

Per the DevExpress Support Center, you can customize the text in the Group headings by using the GroupGetDisplayText method of the grid. An example is:

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;

Upvotes: 0

Related Questions