Back to Devexpress

RangeExtensions.GroupColumns(CellRange, Boolean) Method

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

latest2.8 KB
Original Source

RangeExtensions.GroupColumns(CellRange, Boolean) Method

Groups columns 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 GroupColumns(
    this CellRange range,
    bool collapse
)
vb
<ExtensionAttribute>
Public Shared Sub GroupColumns(
    range As CellRange,
    collapse As Boolean
)

Parameters

NameTypeDescription
rangeCellRange

A CellRange object specifying a cell range that belongs to columns to be grouped.

| | collapse | Boolean |

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

|

Remarks

The GroupColumns method is an extension method of the CellRange object that is called by using the instance method syntax.

To ungroup columns, use the RangeExtensions.UnGroupColumns method.

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

See Also

GroupRows(CellRange, Boolean)

UnGroupRows(CellRange, Boolean)

How to: Outline Data Manually

RangeExtensions Class

RangeExtensions Members

DevExpress.Spreadsheet Namespace