Object Model > GroupColumns Collection |
When the DataView property is set to 2 - Group, a grouping area is created above the grid; columns may be added to this area to form a group, creating a new split in the grid. Each column that is placed into the group becomes a member of the GroupColumns collection, while remaining a member of the Columns collection. If the column is removed from the GroupColumns collection, it is returned to the grid; it is not deleted.
The TDBGrid control (OLE DB version only) maintains a GroupColumns collection to hold and manipulate grouped columns. This collection is accessed using the GroupColumns property.