type
TDBGridEx = class(TDBGrid);
procedure TForm1.DBGridDrawColumnCell(Sender: TObject; const Rect: TRect;
DataCol: Integer; Column: TColumn; State: TGridDrawState);
const
COLORS : array[Boolean] of TColor = (clYellow, clMoneyGreen);
begin
with TDBGridEx(Sender as TDBGrid) do
begin
Canvas.Brush.Color := COLORS[Odd(Rect.Top div DefaultRowHeight)];
DefaultDrawColumnCell(Rect, DataCol, Column, State);
end;
end;