Hello,
We are in a situation where we have a large number of columns contained within our XamGrid.
In an attempt to reduce the horizontal real estate, we would like to try either using vertically aligned text (so that the column only needs to be as wide as the height of the text), or to have angled column headers (say between 30 to 45 degrees) so that the Column Header Text is more readable than being completely vertical, but again, the column width can be significantly reduced.
Is this something that is possible within the XamGrid? If so, how can you go about doing this?
Thanks
Gary
Hello Gary,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Thanks for getting back to me about this.
I was actually able to get the outcome that I wanted. I was going to upload an image here, but doesn't look like I can upload an image, only link to one, as a result, I won't be able to.
The sample that you provided wasn't exactly what was required, but it did help. I actually wanted the text rotated through 90 degrees so that it read vertically, not just had the text vertically stacked.
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I copied the default Style of the HeaderCellControl and handled the loaded event of a Grid in its Template, so I could be able to set the TextWrapping Property of the TextBlock that shows the header to Wrap. I also set the XamGrid’s HeaderRowHeight Property to dynamic. If you want an angled alignment you can retempalte the control as per your requirements. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.