Search found 3 matches

by Hans
Fri Aug 19, 2022 10:13 am
Forum: VCL / FMX
Topic: TeeGrid and Style
Replies: 1
Views: 13670

TeeGrid and Style

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 assi...
by Hans
Fri Aug 19, 2022 8:17 am
Forum: VCL / FMX
Topic: How to re-use a TeeGrid
Replies: 1
Views: 12410

Re: How to re-use a TeeGrid

I found the solution myself, you should always call Data := TStringsData.Create; this should not depend on if Data = nil. I thought this would give a memory leak, but this is handled by the Grid properly.

Did I miss this in the documentation?
by Hans
Thu Aug 18, 2022 1:49 pm
Forum: VCL / FMX
Topic: How to re-use a TeeGrid
Replies: 1
Views: 12410

How to re-use a TeeGrid

I have a TeeGrid that displays (string) data which can be updated. The data and the number of columns and rows will be updated. This is what the function looks like that populates the grid: procedure TMainForm.FillGrid; begin if Data = nil then Data := TStringsData.Create; // Fill Header for i := 0 ...