Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotField.GroupItems(DateTime, DateTime, Int32, PivotFieldGroupByType) Method

In This Article

Performs grouping by dates in the specified interval.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

void GroupItems(
    DateTime startValue,
    DateTime endValue,
    int interval,
    PivotFieldGroupByType groupBy
)

#Parameters

Name Type Description
startValue DateTime

A DateTime value that is the start of the time interval to group.

endValue DateTime

A DateTime value that is the end of the time interval to group.

interval Int32

An integer that is the number of days in each group. Applicable if the grouping type is PivotFieldGroupByType.Days.

groupBy PivotFieldGroupByType

A PivotFieldGroupByType enumeration value or a combination of values which specifies how the pivot field is grouped.

See Also