Thursday, November 22, 2012

Align DataGrid Column Contents

Here is the XAML to center align a DataGrid column:
 
<Style TargetType="DataGridCell">    
<Style.Setters>
<Setter Property="TextBlock.TextAlignment" Value="Center" />
</Style.Setters>
</Style>

No comments:

Post a Comment