Skip to main content

TcxDataControllerGroups.ChangeExpanding(Integer,Boolean,Boolean) Method

Expands or collapses a data group.

Declaration

procedure ChangeExpanding(ARowIndex: Integer; AExpanded: Boolean; ARecursive: Boolean);

Parameters

Name Type
ARowIndex Integer
AExpanded Boolean
ARecursive Boolean

Remarks

The ChangeExpanding method expands or collapses a group based upon the value of the AExpanded parameter. If AExpanded is True, a group is expanded. Otherwise the group is collapsed. To identify a data group, you should pass the index of a group row via the ARowIndex parameter. Specifying the index of a data row will do nothing.

The ARecursive parameter allows you to expand or collapse nested groups recursively. Set this parameter to True to expand/collapse all the nested groups.

To expand and collapse all data groups use the FullExpand and FullCollapse methods respectively.

See Also