• Material 3
  • Fluent
  • Fluent 2
  • Bootstrap 5
  • Tailwind CSS
  • High Contrast
  • Fluent 2 High Contrast
Preferences
Mode Selection
Touch
Mouse
Theme Selection
Theme Mode
Localization
*Translated by Google Translator.
Currency

Example of Grouping in ASP.NET Core Pivot Table Control

This sample demonstrates grouping dates in year, quarter, month, etc., and number types in ranges like 1–5, 6–10, etc. in row and column headers of the pivot table.

DEMO
SOURCE
Group Date by:
Group Product ID by:

In this sample, the date type can be separated and showcased individually as year, quarter, month, or day by selecting the appropriate option from the Group Date by drop-down list. Also, numbers can be grouped by entering the appropriate value in the Group Product ID by by giving a range number in the the numeric text box.

Grouping can be applied through code-behind using the groupSettings object in the pivot table along with the following properties:

name : Specifies the normal field.
type : Specifies the field type for applying group settings. For example, date-formatted fields should be in "Date" type and number-formatted fields should be in "Number" type.
groupInterval : Specifies the interval for date fields in years, quarters, months, etc.
rangeInterval : Specifies the interval value to group the number field.
Transform your ASP.NET Core web apps today with Syncfusion ASP.NET Core components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab