Changing cell value

TeeGrid VCL / FMX for Embarcadero RAD Studio, Delphi, C++ Builder and Lazarus Free Pascal.
Post Reply
Yon
Newbie
Newbie
Posts: 2
Joined: Fri Sep 06, 2019 12:00 am

Changing cell value

Post by Yon » Thu Oct 10, 2019 7:37 pm

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

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

Re: Changing cell value

Post by Yeray » Tue Oct 22, 2019 7:19 am

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.
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