Hello,
I'm glad it helps.
I'm sorry I have no idea why OddRow color is not updated immediatelly as DBGrid.Invalidate is called for update of both properties ColorOddRow + OptionsEx2.Appearance.DrawColoredRow.
procedure TrDBGrid.SetColorOddRow(Value: TColor);
begin
FColorOddRow:=Value;
Invalidate;
end;
procedure TOptionsAppearance.SetDrawColoredRow(Value: boolean);
begin
FDrawColoredRow:=Value;
FOwner.Invalidate;
end;
procedure DrawColumnCell:
...
IsColored:=FOptionsEx2.FAppearance.FDrawColoredRow and (not Highlighted) and (DataLink.DataSet.recno mod 2 = 0) and (Canvas.Brush.Color = Column.Color);
...
if IsColored then
Canvas.Brush.Color:=FColorOddRow;
What DB type are you using?
Can you debug and check if the DrawColumnCell is called after DrawColoredRow set?
Thanks
Tomas