Back to Devexpress

RangeExtensions.GroupRows(CellRange, Boolean) Method

officefileapi-devexpress-dot-spreadsheet-dot-rangeextensions-dot-grouprows-x28-devexpress-dot-spreadsheet-dot-cellrange-system-dot-boolean-x29.md

latest2.8 KB
Original Source

RangeExtensions.GroupRows(CellRange, Boolean) Method

Groups rows that comprise the cell range.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public static void GroupRows(
    this CellRange range,
    bool collapse
)
vb
<ExtensionAttribute>
Public Shared Sub GroupRows(
    range As CellRange,
    collapse As Boolean
)

Parameters

NameTypeDescription
rangeCellRange

A CellRange 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 CellRange 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

GroupColumns(CellRange, Boolean)

UnGroupColumns(CellRange, Boolean)

How to: Outline Data Manually

RangeExtensions Class

RangeExtensions Members

DevExpress.Spreadsheet Namespace