Delphi FMX – Change cell background colour without covering text TStringGrid [duplicate]

  

This question already has an answer here:

How to change color of a cell in a Delphi TGrid Firemonkey component?

1 answer

Coloring cell background on firemonkey stringgrid according to value from data

2 answers

I am creating a diary calendar, I want to be able to change the colour of the cell based on a certain string inside the cell. E.g if TStringGrid.Cells[x,y] = ‘1’ Change the background colour to blue, if TStringGrid.Cells[x,y] = ‘2’ Change the background colour to red, is there a way to do this? And how would I stop the background colour from covering the text in the cell?

Comments are closed.