Skip to main content

TcxDataControllerGroups.ChangeGrouping(Integer,Integer,Boolean,Boolean) Method

Sets the group index for a specified item

Declaration

procedure ChangeGrouping(AItemIndex: Integer; AGroupIndex: Integer; AMergeWithLeftItem: Boolean = False; AMergeWithRightItem: Boolean = False);

Parameters

Name Type
AItemIndex Integer
AGroupIndex Integer
AMergeWithLeftItem Boolean
AMergeWithRightItem Boolean

Remarks

The ChangeGrouping method allows you to set the group index for an item. The item is addressed by its position within a collection of all items. The AGroupIndex parameter defines a new group index. To delete grouping by a specific item you must pass -1 as the AGroupIndex parameter. The number of current grouping items is defined via the GroupingItemCount property. To determine the current group index for an item, use the ItemGroupIndex property.

See Also