method Groups.Add (ID as Long, Caption as String)
Adds a Group object to the collection and returns a reference to the newly created object.

TypeDescription
ID as Long A Long expression that specifies the identifier of the Group. In order to assign an event to the same group you need to use the same identifier in the GroupID property of the Event.
Caption as String A String expression that indicates the HTML format to be shown on the Group's header.
ReturnDescription
GroupA Group object being created. 
Use the Add method of the Groups collection to add new groups to the control. Use the Visible property to make the group visible in the schedule panel. The DisplayGroupingButton property indicates whether the header of the date displays the grouping button. The list of available groups is displayed on a drop down panel, once the user clicks the grouping/filtering button. The drop down list shows the Title for each group found. The ShowGroupingEvents property indicates whether the control displays events grouped by its GroupID property. The ApplyGroupingColors property specifies whether the control uses the Group's EventBackColor / EventForeColor / EventPattern properties to show the events in the groups. The SingleGroupingView property specifies whether the drop down panel shows radio buttons, instead check boxes, so the user can see all groups or only one group at the time. The GroupID property specifies the identifier of the group where the event belongs. If the control displays groups the GroupID property of the newly created event is automatically updated with the group where the event has been created. The AllowMoveEventToOtherGroup property specifies whether the user can move an event from a group to another at runtime.

The control displays groups if:

The following Background properties change the visual appearance of the drop down grouping panel:

The Description(exGroupBarAll) property changes the "(All)" predefined string, being displayed on the top of the drop down grouping/filtering panel.