How to right align text in a DataGrid column header in xaml?
H.B's answer is correct; just add one more line:
<DataGridTextColumn.HeaderStyle> <Style TargetType="{x:Type DataGridColumnHeader}"> <Setter Property="HorizontalAlignment" Value="Stretch"/> <Setter Property="HorizontalContentAlignment" Value="Right"/> </Style></DataGridTextColumn.HeaderStyle>