Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

Welcome, Guest
Guest Settings

Thread: [Berlin] Change Grid's Column Header Text Alignment

This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Permlink Replies: 0
Tallys Ferrante

Posts: 14
Registered: 5/29/11
[Berlin] Change Grid's Column Header Text Alignment  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 1, 2017 11:57 AM
I'm trying to change my grid's column header text alignment to Center with this code:

Canvas.Fill.Color := TAlphaColorRec.Black;
Canvas.FillText(Bounds, (Column.Header),false, 1, [], TTextAlign.Center, TTextAlign.Center)

It actually works, however my header now displays 2 times the same text, one at center and one at left. I already tried use Canvas.Clear, but i need provide a color, and my header background is a gradient, so gets ugly. I already tried disabling DefaultDrawing too.
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02