.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

TableStyleCollection.DefaultPivotStyle Property

Gets or sets the default pivot table style.

Namespace: DevExpress.Spreadsheet

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


TableStyle DefaultPivotStyle { get; set; }

Property Value

Type Description

A TableStyle object.


Use the DefaultPivotStyle property to specify the default style for pivot tables that can be used in the following cases.

  • If you create a pivot table and do not explicitly specify a style to be applied to the report, the default style will be automatically applied to the created pivot table.
  • If you remove a style that has been previously applied to a pivot table, the pivot table style will be changed to the default style.

You can set the DefaultPivotStyle property to any pivot table style contained in the collection. If the default pivot table style is not explicitly specified, the PivotStyleLight16 built-in style is used as default. The image below shows the pivot table appearance when the PivotStyleLight16 style is applied.


See Also