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.