Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Sets the group index for a specified item

#Declaration

Delphi
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