# Pivot Grid Styles | WPF Controls | DevExpress Documentation

The following table lists all style properties introduced by the [Pivot Grid](/WPF/7228/controls-and-libraries/pivot-grid):

| Visual Element | Property | Description | Target Element | Data Context (Binding Source) |
| --- | --- | --- | --- | --- |
| **Field Header** | [PivotGridControl.FieldHeaderContentStyle](/WPF/DevExpress.Xpf.PivotGrid.PivotGridControl.FieldHeaderContentStyle)<br><br><br>[PivotGridField.HeaderContentStyle](/WPF/DevExpress.Xpf.PivotGrid.PivotGridField.HeaderContentStyle) | Specifies a field header’s style. | System.Windows.Controls.TextBlock | [PivotGridField](/WPF/DevExpress.Xpf.PivotGrid.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](/WPF/DevExpress.Xpf.Editors.TextEdit) control to the [PivotGridControl.FieldHeaderContentStyle](/WPF/DevExpress.Xpf.PivotGrid.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](/WPF/images/appearance-field-headers16290.png)

- MainWindow.xaml.vb
- Application.xaml.vb
- Application.xaml
- MainWindow.xaml
- MainWindow.xaml.cs

<section id="tabpanel_LyxwWgKk33_tabid-vbMainWindow-xaml-vb" role="tabpanel" data-tab="tabid-vbMainWindow-xaml-vb">
<pre><code data-code-links="{&quot;/ (System.Windows)(?:;|$)/&quot;:&quot;https://learn.microsoft.com/dotnet/api/system.windows&quot;}" class="lang-vb">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
</code></pre></section>
<section id="tabpanel_LyxwWgKk33_tabid-vbApplication-xaml-vb" role="tabpanel" data-tab="tabid-vbApplication-xaml-vb" aria-hidden="true" hidden="hidden">
<pre><code data-code-links="{&quot;/ (System)(?:;|$)/&quot;:&quot;https://learn.microsoft.com/dotnet/api/system&quot;,&quot;/ (System.Collections.Generic)(?:;|$)/&quot;:&quot;https://learn.microsoft.com/dotnet/api/system.collections.generic&quot;,&quot;/ (System.Configuration)(?:;|$)/&quot;:&quot;https://learn.microsoft.com/dotnet/api/system.configuration&quot;,&quot;/ (System.Data)(?:;|$)/&quot;:&quot;https://learn.microsoft.com/dotnet/api/system.data&quot;,&quot;/ (System.Linq)(?:;|$)/&quot;:&quot;https://learn.microsoft.com/dotnet/api/system.linq&quot;,&quot;/ (System.Windows)(?:;|$)/&quot;:&quot;https://learn.microsoft.com/dotnet/api/system.windows&quot;}" class="lang-vb">Imports System
Imports System.Collections.Generic
Imports System.Configuration
Imports System.Data
Imports System.Linq
Imports System.Windows

Namespace DXPivotGrid_OverrideElementStyles
    &#39;&#39;&#39; &lt;summary&gt;
    &#39;&#39;&#39; Interaction logic for App.xaml
    &#39;&#39;&#39; &lt;/summary&gt;
    Partial Public Class App
        Inherits Application

    End Class
End Namespace
</code></pre></section>
<section id="tabpanel_LyxwWgKk33_tabid-xamlApplication-xaml" role="tabpanel" data-tab="tabid-xamlApplication-xaml" aria-hidden="true" hidden="hidden">
<pre><code class="lang-xaml">&lt;Application x:Class=&quot;DXPivotGrid_OverrideElementStyles.App&quot; xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot; xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot; StartupUri=&quot;MainWindow.xaml&quot;&gt;
    &lt;Application.Resources&gt;

    &lt;/Application.Resources&gt;
&lt;/Application&gt;
</code></pre></section>
<section id="tabpanel_LyxwWgKk33_tabid-xamlMainWindow-xaml" role="tabpanel" data-tab="tabid-xamlMainWindow-xaml" aria-hidden="true" hidden="hidden">
<pre><code class="lang-xaml">&lt;Window xmlns:dxpg=&quot;http://schemas.devexpress.com/winfx/2008/xaml/pivotgrid&quot;
        xmlns:dx=&quot;http://schemas.devexpress.com/winfx/2008/xaml/core&quot;
        xmlns:dxe=&quot;http://schemas.devexpress.com/winfx/2008/xaml/editors&quot;
        xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
        xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
        x:Class=&quot;DXPivotGrid_OverrideElementStyles.MainWindow&quot;
        dx:ThemeManager.ThemeName=&quot;Office2010Black&quot;
        Height=&quot;600&quot; Width=&quot;800&quot;
        Title=&quot;Main Window&quot;&gt;
    &lt;Grid&gt;
        &lt;dxpg:PivotGridControl Name=&quot;pivotGridControl1&quot;&gt;
            &lt;dxpg:PivotGridControl.FieldHeaderContentStyle&gt;
                &lt;Style TargetType=&quot;{x:Type TextBlock}&quot;&gt;
                    &lt;Setter Property=&quot;Cursor&quot; Value=&quot;UpArrow&quot; /&gt;
                    &lt;Setter Property=&quot;Foreground&quot; Value=&quot;#ffd189&quot; /&gt;
                    &lt;Setter Property=&quot;Text&quot; Value=&quot;{Binding DisplayText, StringFormat=&#39;{}({0})&#39;}&quot;/&gt;
                &lt;/Style&gt;
            &lt;/dxpg:PivotGridControl.FieldHeaderContentStyle&gt;
            &lt;dxpg:PivotGridControl.Fields&gt;
                &lt;dxpg:PivotGridField Name=&quot;fieldCustomer&quot; FieldName=&quot;Sales Person&quot; Area=&quot;RowArea&quot;
                                     Caption=&quot;Customer&quot;/&gt;
                &lt;dxpg:PivotGridField Name=&quot;fieldYear&quot; FieldName=&quot;OrderDate&quot; Area=&quot;ColumnArea&quot;
                                     Caption=&quot;Year&quot; GroupInterval=&quot;DateYear&quot;/&gt;
                &lt;dxpg:PivotGridField Name=&quot;fieldQuantity&quot; FieldName=&quot;Quantity&quot; Area=&quot;DataArea&quot;/&gt;
            &lt;/dxpg:PivotGridControl.Fields&gt;
        &lt;/dxpg:PivotGridControl&gt;
    &lt;/Grid&gt;
&lt;/Window&gt;
</code></pre></section>
<section id="tabpanel_LyxwWgKk33_tabid-csharpMainWindow-xaml-cs" role="tabpanel" data-tab="tabid-csharpMainWindow-xaml-cs" aria-hidden="true" hidden="hidden">
<pre><code data-code-links="{&quot;/ (System.Windows)(?:;|$)/&quot;:&quot;https://learn.microsoft.com/dotnet/api/system.windows&quot;}" class="lang-csharp">using System.Windows;
using DXPivotGrid_OverrideElementStyles.DataSet1TableAdapters;

namespace DXPivotGrid_OverrideElementStyles {
    public partial class MainWindow : Window {
        SalesPersonTableAdapter salesPersonDataAdapter = new SalesPersonTableAdapter();
        public MainWindow() {
            InitializeComponent();
            pivotGridControl1.DataSource = salesPersonDataAdapter.GetData();
        }
    }
}
</code></pre></section>