Reputation: 47
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.
Upvotes: -1
Views: 1086
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