Author: Peter Lagerström
How do I create a group band at runtime?
Answer:
You can call the band's create constructor and set it's properties.
1 with TQRGroup.Create(Self) do2 begin3 Parent := QuickRep1;
4 Master := Parent;
5 Expression := 'CustNo';
6 end;
7 8 with TQRDBText.Create(Self) do9 begin10 Parent := QRGroup1;
11 Dataset := QuickRep1.Dataset;
12 DataField := 'CustNo';
13 end;