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

TableStyleCollection.DefaultPivotStyle Property

Gets or sets the default pivot table style.

Namespace: DevExpress.Spreadsheet

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

Declaration

TableStyle DefaultPivotStyle { get; set; }
Property DefaultPivotStyle As TableStyle

Property Value

Type Description
TableStyle

A TableStyle object.

Remarks

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.

SpreadsheetPivotTable_DefaultStyle

See Also