Skip to main content
Row

PivotField.UngroupItems() Method

Removes grouping for the current field.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

void UngroupItems()

Example

This code snippet groups the DATE field by days and subsequently removes grouping from that field.

View Example

Dim worksheet As Worksheet = workbook.Worksheets("Report8")
workbook.Worksheets.ActiveWorksheet = worksheet

' Access the pivot table by its name in the collection.
Dim pivotTable As PivotTable = worksheet.PivotTables("PivotTable1")
' Access the "DATE" field by its name in the collection.
Dim field As PivotField = pivotTable.Fields("DATE")
' Group field items by days.
field.GroupItems(field.GroupingInfo.DefaultStartValue, field.GroupingInfo.DefaultEndValue, 50, PivotFieldGroupByType.Days)
' Ungroup field items.
field.UngroupItems()
See Also