I have made research of how to dynamically at run time change font color and cell background color, but all solutions are in Delphi code, and cannot be used in C++.
Like this one:
CellCtrl := TColumnAccess( StringGrid1.Columns[ Col ] ).CellControlByRow( Row );
CellControlByRow
doesnt exist in FMX C++ Builder. I have tried to use TGrid
, but this make the grid very slow when each cell has to be drawn custom in event driven OnDrawxxxx
.
There is another solution changing the font color and the cell color in the event OnApplyStyleLookUp
, but again the solution in Delphi doesn't exist in C++ Builder, or I don't know how to implement in OnApplyStyleLookUp
C++ Builder style.
Any help on this is very much appreciated, since I have been a week in this now.