Skip to main content

DataControlBase.ColumnHeaderStyle Property

Gets or sets the column header’s style. This is a dependency property.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v21.2.dll

Declaration

public Style ColumnHeaderStyle { get; set; }

Property Value

Type Description
Style

A Style object that represents the column header’s style.

Remarks

Target type: DevExpress.WinUI.Grid.BaseColumnHeaderControl

See the example below.

<Style x:Key="CustomHeaderStyle" TargetType="dxg:BaseColumnHeaderControl">
    <Setter Property="Background" Value="Red"/>
    <Setter Property="Foreground" Value="Yellow"/>
</Style>

Use the ColumnBase.HeaderStyle property to set the header style for independent columns.

See Also