// DBGridをFColorDBGrid1とFColorDBGrid2の縞々にする。 if not (gdSelected in State) then begin if Table1.RecNo mod 2=0 then begin DBGrid1.Canvas.Brush.Color := FColorDBGrid1; DBGrid1.DefaultDrawColumnCell(Rect, DataCol, Column, State); end else begin DBGrid1.Canvas.Brush.Color := FColorDBGrid2; DBGrid1.DefaultDrawColumnCell(Rect, DataCol, Column, State); end; end;