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
1155
cell text behavior when mouse hover
posted

Hi,

I have several cells in my ultragrid with style set to Button. I also set the cells TextHAlign property to Center.

Always when I hover over the cell with my mouse the TextHAlign changes to Left. How can I prevent this behavior so that the TextHAlign stays to Center?

Thanks in advance,

Alex

Parents
  • 9298
    posted

    Alex,

    Try setting the TextHAlign property of the CellButtonAppearance property of the Column. 

    Something like this:

    e.Layout.Bands[0].Columns["Customer"].CellButtonAppearance.TextHAlign = HAlign.Center;

    Let me know if that works for you. 

Reply Children
No Data