Page 1 of 1

TeeGrid and Style

Posted: Fri Aug 19, 2022 10:13 am
by 18694190
When I have a TeeGrid on a Form, and I have a StyleBook applied to this form, the form shows styled, but the grid remains "white".

If I open the TeeGrid Editor, I can select "Default" in the Theme tab, and things appear good at design time, however, if I run the grid is white again. Any editors assigned to a cell do appear in the correct style, but the background of the grid and the cells are all white.

What do I need to do to apply the style settings to a TeeGrid?

Regards,
Hans

Re: TeeGrid and Style

Posted: Tue Oct 25, 2022 11:20 am
by Marc
Hello Hans,

There is an example of the application of styles that may help here:

https://github.com/Steema/TeeGrid-VCL-F ... key/Themes

This property can change the back colour of a Grid:

Code: Select all

TeeGrid1.Back.Brush.Color := TColors.Yellow;
Regards,
Marc Meumann