How can I align the column data to center in a WPF DataGrid
?
If you are using DataGridTextColumn you can use the following code snippet:
<Style TargetType="DataGridCell">
<Style.Setters>
<Setter Property="TextBlock.TextAlignment" Value="Center" />
</Style.Setters>
</Style>