Order and save right now!
20% off with the 729824315 dicscount code for Ultimate Pack and any another product for Delphi from Greatis Programming! |
⤷ Set colors for DBCtrlGrid's lines
Use the OnPaintPanel event:
procedure TForm1.DBCtrlGrid1PaintPanel(DBCtrlGrid: TDBCtrlGrid;
Index: Integer);
begin
if Odd(DBCtrlGrid1.DataSource.DataSet.RecNo) then
DBCtrlGrid1.Color:=clRed
else
DBCtrlGrid1.Color:=clBlue;
end;
-
More for developers