The following sample shows the grouping header and the grouping panel:
  
The Groups collection supports the following properties and methods:


| Name | Description | |||
| Add | Adds a Group object to the collection and returns a reference to the newly created object. | |||
| Clear | Removes all objects in a collection. | |||
| Count | Returns the number of objects in a collection. | |||
| Item | Returns a specific Group of the Groups collection, giving its identifier. | |||
| ItemByIndex | Returns a specific Group of the Groups collection, giving its index. | |||
| ItemByPos | Returns a specific Group of the Groups collection, giving its position. | |||
| Remove | Removes a specific member from the Groups collection. |