How to get values of cells in tmsfmxlivegrid hidden columns?

  

i want to change text color cells in specific column basing on values of other cells in other column using the GetCellLayout event like this.

procedure TForm1.TMSFMXLiveGrid1GetCellLayout(Sender: TObject;
ACol, ARow: Integer; ALayout: TTMSFMXGridCellLayout; ACellState: TCellState);
begin
if ACol = 1 then
if TMSFMXLiveGrid1.Cells[5, ARow] <> ” then
ALayout.FontFill.Color := TAlphaColorRec.Red;
end;

the problem is that when the column 5 is not visible in the screen area(you must scroll to see it) the color still black instead of red, because the column 5 is not loaded;
NB:the grid is binded to a dataset.

Comments are closed.