|
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;
- Related chapters
-
Components
- Related topics
-
Create DBGrid with colored cells
Create DBGrid that shows images
Put bitmap to StringGrid
- For more
-
Delphi Help
- Download source
|