I found this example, using OnPrepareCanvas:Code: Pascal [Select][+][-]procedure TForm1.gridPrepareCanvas(sender: TObject; aCol, aRow: Integer; aState: TGridDrawState);begin if (gdFixed in aState) then Exit; if (aRow=grid.Row) then if (aCol=grid.Col) then grid.Canvas.Brush.Color:=clYellow else grid.Canvas.Brush.Color:=clBlue;end; You can adapt it.
Well, maybe you can keep a list of cells that must have different colors and apply these colors in the OnPrepareCanvas event.