Page 1 of 1

TeeGrid Colors

Posted: Thu Jul 24, 2025 8:22 pm
by 18696547
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!

Re: TeeGrid Colors

Posted: Sun Jul 27, 2025 2:50 am
by 18696547
Teegrid1.Selected.format.Brush.color (bg color of the selected row)

Re: TeeGrid Colors

Posted: Mon Jul 28, 2025 9:58 am
by yeray
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;