Hi,
I would like to make the contents of header row vertical. This will save me space, since the header takes up a lot of space. Every other row would be as before, that is horizontal text. How would I achieve this?
Hello,
I have been looking into your question and you can create a style for the LabelPresenter where to set the a vertical TextBlock in the ContentPresenter. Also you need to set the ‘Width’ property to “Auto”. I am attaching a sample application(DataGridVerticalHeaders.zip) that shows my approach.
Let me know, if you need any further assistance on this matter.
many thanks. It worked.
I noticed that in your example, the last column Mileage, the text gets cut off. Do you also see the same thing?
I am just checking if you require any further assistance on the matter.