WPF
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
>
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)