WPF - DataGrid Column Header Alignment?

OK, found the answer The property I was looking for was VerticalContentAlignment I created a style and attached that using the HeaderStyle property, and it worked :) Style x:Key="VerticalGridHeaderStyle" TargetType="tk:DataGridColumnHeader.

OK, found the answer. The property I was looking for was VerticalContentAlignment. I created a style and attached that using the HeaderStyle property, and it worked :).

I'm using the WPFToolkit DataGrid control and I wanted to restyle some of the column headers so that the header text is displayed vertically instead of horizontally (the data in the column is all numeric and therefore, not very wide, but the header text is long). So I created a DataTemplate to and tried to get the DataGridColumn. HeaderTemplate to it.

This works just fine, except the alignment of the header is always left and center. No combination of alignments for the StackPanel or the TextBlock seems to make any difference. I would like to have the text aligned at the bottom and middle.

How can I make it do that?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions