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
85
Align Table Headers Right
posted

I'm able to align the content of the table to the right with HorizontalContentAlignment; however, my issue is I'm trying to align the actual table headers as well. Does anybody know of a way of doing this?

Parents
No Data
Reply
  • 34810
    Offline posted

    Hello Craig,

    Thank you for your post!

    To align the header content of the XamDataGrid, I would recommend setting the LabelTextAlignment property in the XamDataGrid.FieldSettings area. This will center the text in the headers of the fields in your XamDataGrid. The XAML would look something like this:

    <ig:XamDataGrid.FieldSettings>
    <ig:FieldSettings LabelTextAlignment="Center"/>
    </ig:XamDataGrid.FieldSettings>

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer
    Infragistics Inc.
    www.infragistics.com/support

Children