Page 1 of 1

Changing cell value

Posted: Thu Oct 10, 2019 7:37 pm
by 18686992
Hello

My project is in Delphi FMX.

I'm trying to change a specific column cells text in a TeeGrid with a function.

The function is changing the cell content to "Mr Isaac" if the cell contains "Isaac" and "Miss Sarah" if the cell contains "Sarah".

there is no user input. the data is coming from FDQuery.

what would be the best way of doing it?

Thank you

Re: Changing cell value

Posted: Tue Oct 22, 2019 7:19 am
by yeray
Hello,

Excuse the delayed reply here.
Have you seen the Virtual Mode example?
Alternatively, you can manually create a custom TStringsData and assign it to the grid's Data as in the TStringGrid example.
This and other features are explained here.