Back to Devexpress

PivotFieldGroupingInfo.GroupBy Property

officefileapi-devexpress-dot-spreadsheet-dot-pivotfieldgroupinginfo-90b3cd09.md

latest2.9 KB
Original Source

PivotFieldGroupingInfo.GroupBy Property

Gets the grouping type.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
PivotFieldGroupByType GroupBy { get; }
vb
ReadOnly Property GroupBy As PivotFieldGroupByType

Property Value

TypeDescription
PivotFieldGroupByType

A PivotFieldGroupByType enumeration member.

|

Available values:

NameDescription
None

Indicates that field items are not grouped.

| | NumericRanges |

Groups items in a numeric field into intervals.

The interval length is defined by the interval parameter of the PivotField.GroupItems method and returned by PivotFieldGroupingInfo.Interval property.

| | Seconds |

Groups items in the date or time field by seconds, regardless of the date to which the current date/time value belongs.

| | Minutes |

Groups items in the date or time field by minutes, regardless of the date to which the current date/time value belongs.

| | Hours |

Groups items in the date or time field by hours, regardless of the date to which the current date/time value belongs.

| | Days |

Groups items in the date or time field by days.

The number of days included in each group is defined by the interval parameter of the PivotField.GroupItems method and returned by the PivotFieldGroupingInfo.Interval property.

| | Months |

Groups items in the date or time field by months.

| | Quarters |

Groups items in the date or time field by quarters.

| | Years |

Groups items in the date or time field by years.

|

Remarks

If the date grouping is performed on several time intervals, the GroupBy returns the type related to the smallest time interval. That is, when a field is grouped by quarters and months, the PivotFieldGroupByType.Months value is returned.

See Also

PivotFieldGroupingInfo Interface

PivotFieldGroupingInfo Members

DevExpress.Spreadsheet Namespace