Hi, I'm using a xamdatagrid in a wpf project. How do I change at runtime the alignment (vertical: top, middle, bottom - Horizontal: right, center, left) of text in the column headers? I also need to set a different alignment for each column.
Thanks, Maria
Hello,
I have been looking into your question you can change the text assignment in the label presenter in a filed lie e.g. :
this.myGrid.FieldLayouts[0].Fields[0].Settings.LabelTextAlignment = TextAlignment.Right;
If you need any further assistance on this matter, feel free to ask.
Thank you. In this way I can set the horizontal alignment, but for the vertical I can't find a corresponding property. How should I do?