DataGridTextColumn.HeaderStyle over DataGrid.RowHeaderStyle

Coordinator
Jan 23, 2012 at 9:07 PM

I assume that DataGrid.RowHeaderStyle is ignored when AutoGenerateColumns="False" because I had to set following individually per column instead of once at the grid level:

<data:DataGridTextColumn.HeaderStyle>
    <Style TargetType="dataPrimitives:DataGridColumnHeader">
        <Setter Property="FontWeight" Value="Normal"/>
    </Style>
</data:DataGridTextColumn.HeaderStyle>

where:

    xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
    xmlns:dataPrimitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Data"