Skip to main content
A newer version of this page is available. .

Pivot Grid Styles

  • 2 minutes to read

The following table lists all style properties introduced by the Pivot Grid:

Visual Element

Property

Description

Target Element

Data Context (Binding Source)

Field Header

PivotGridControl.FieldHeaderContentStyle

PivotGridField.HeaderContentStyle

Specifies a field header’s style.

System.Windows.Controls.TextBlock

PivotGridField

Example

The following example demonstrates how to override a style applied to pivot grid field headers.

To do this, we assign a custom style that targets the TextEdit control to the PivotGridControl.FieldHeaderContentStyle property. This style specifies the display text format, foreground color and mouse pointer type for field headers.

The following image shows the result:

Appearance-Field-Headers

View Example

Imports System.Windows
Imports DXPivotGrid_OverrideElementStyles.DataSet1TableAdapters

Namespace DXPivotGrid_OverrideElementStyles
    Partial Public Class MainWindow
        Inherits Window

        Private salesPersonDataAdapter As New SalesPersonTableAdapter()
        Public Sub New()
            InitializeComponent()
            pivotGridControl1.DataSource = salesPersonDataAdapter.GetData()
        End Sub
    End Class
End Namespace