TeeGrid Colors

TeeGrid VCL / FMX for Embarcadero RAD Studio, Delphi, C++ Builder and Lazarus Free Pascal.
Post Reply
TheOtherPrefontaine
Newbie
Newbie
Posts: 22
Joined: Tue Aug 22, 2023 12:00 am

TeeGrid Colors

Post by TheOtherPrefontaine » Thu Jul 24, 2025 8:22 pm

Great component!

It would be useful to know how to change the color of two of the TeeGrid aspects.

I know of:

TeeGrid1.Back.Brush.Color
the background color of the grid item
TeeGrid1.Cells.Format.font.color
the font color of the grid item

I need to know how to set:

The selected item brush color
The selected item font color

Anyone have this information? Thanks in advance!

TheOtherPrefontaine
Newbie
Newbie
Posts: 22
Joined: Tue Aug 22, 2023 12:00 am

Re: TeeGrid Colors

Post by TheOtherPrefontaine » Sun Jul 27, 2025 2:50 am

Teegrid1.Selected.format.Brush.color (bg color of the selected row)

Yeray
Site Admin
Site Admin
Posts: 9721
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TeeGrid Colors

Post by Yeray » Mon Jul 28, 2025 9:58 am

Hello,

I believe you only missed to set the ParentFont to False. This works for me (sorry for the colors chosen 8) ):

Code: Select all

  TeeGrid1.Selected.ParentFont:=False;
  TeeGrid1.Selected.Format.Font.Color:=clRed;

  TeeGrid1.Selected.Format.Brush.Color:=clGreen;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply