Gets or sets the style applied to all column headers in the DataGrid.
Assembly: PresentationFramework (in PresentationFramework.dll)
A Style can be applied to all column headers, or to an individual column header. To apply a Style to an individual header, set the DataGridColumn.HeaderStyle property, which takes precedence over the property.
Legacy Code Example
The following example uses a style resource to change the style of column headers in the DataGrid. The style of the first column header is then set with an inline style that overrides the .Code snippet is not found. Confirm that the code snippet name 'DataGrid_ColumnHeaderStyle' is correct.
The following illustration shows the output.
Available since 4.0
Available since 2.0