Skip to main content

ColumnBase.ColumnHeaderContentStyle Property

Gets or sets the style of the text within the column header. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v22.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core


public Style ColumnHeaderContentStyle { get; set; }

Property Value

Type Description

A Style object that represents the style of the text within the column header.


The image below shows a grid column whose header caption is red and has a larger font size:


Specify the ColumnHeaderContentStyle property to change the header content’s appearance. Use the DataViewBase.ColumnHeaderContentStyle property to specify the common style applied to all the columns in the current GridControl’s view. The target element for these styles is the ContentControl class.

The following code sample demonstrates how to change the header caption color and increase the font size:

<dxg:GridColumn FieldName="CategoryName">               
      <Style TargetType="{x:Type ContentControl}">
         <Setter Property="FontSize" Value="15" />
         <Setter Property="Foreground" Value="Red" />                        

Use the ColumnBase.ActualColumnHeaderContentStyle property to obtain the current column header content style.

See Also