NEED HELP..I am using delphi 10.1 berlin. There are some different with other previus version of Embarcadero Delphy Code Gear. I need to change font color in rows of TGrid. Whith this next code i will change backgrond color but i need to change only Font Color :
aRowColor.Color := arSTATUS_GRID_COLOR[0];
Canvas.FillRect(Bounds, 0, 0, [], 1, aRowColor);
Column.DefaultDrawCell(Canvas, Bounds, Row, Value, State);
Instead of calling
Column.DefaultDrawCell(), you can useFMX.Graphics.TCanvas.FillText()in the gridsOnDrawColumnCell()event.The documentation explains the details, but the main point is to set
Canvas.Fill.Colorto the desired color before callingCanvas.FillText()Sample code:
And how it looks like: