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
1192
Define Style for Column Header.
posted

Hi

I want to define style for column Header of XamDataGrid with following

Header Background color, foreground color , alignment, fontsize, sorting etc.

For above effect, I have used

DataRecordPresenter and LabelPresenter

 

 

 

But from below style, I get unexpected result i.e. whitespaces between 2 columns

 

 

 

 

 

 

Thanks

 

 

  • 138253
    Offline posted

    Hello Samir,

     

    I am just checking if you got this worked out or you still require any assistance or clarification on the matter.

  • 138253
    Offline posted

    Hello Samir,

     

    Thank you for your post. I have been looking into it and the code you have provided and I suggest you remove the LabelPresenter’s Setter for HorizontalAlignment and instead of it set the XamDataGrid’s FieldSettings’ LabelTextAlignment Property to Center. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.