TdxSpreadSheetGroupRows Class
An action object that implements the GroupRows end-user command in Spreadsheet and Report Designer-based applications.
Declaration
TdxSpreadSheetGroupRows = class(
TdxSpreadSheetGroupColumns
)
Remarks
This class does not introduce any new public members. Its overridden Execute function call groups all rows that bound the cell selection area.
Consequent Execute calls for the same target rows create new groups and increase the original group’s nesting level, up to the maximum of 7
.
UI elements linked to a TdxSpreadSheetGroupRows
action object are enabled only if the following conditions are met:
At least one cell is selected (the command is unavailable if a floating container is selected or the cell selection is cleared).
The active worksheet is not protected (that is, its Options.Protected and/or OptionsProtection.Protected properties are set to
False
).
Note
To exclude rows from a group at the highest current nesting level, use the UngroupRows command.