Skip to main content
All docs
V19.1
.NET Framework 4.5.2+
Row

RangeExtensions.GroupRows(Range, Boolean) Method

Groups rows that comprise the cell range.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

Declaration

public static void GroupRows(
    this Range range,
    bool collapse
)

Parameters

Name Type Description
range Range

A Range object specifying a cell range that belongs to rows to be grouped.

collapse Boolean

true, if the created group is collapsed; otherwise, false.

Remarks

The GroupRows method is an extension method of the Range object that is called by using the instance method syntax.

To ungroup rows, use the RangeExtensions.UnGroupRows method.

Another way to group and ungroup rows in the worksheet is to use the RowCollection.Group and RowCollection.UnGroup methods (see the How to: Outline Data Manually document).

See Also