Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
925
Text alignment of header
posted

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

Parents
No Data
Reply
  • 35319
    posted

    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.

Children