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
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.
That's it!
Thanks Michael.