![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#2
|
||||
|
||||
|
Usa el evento OnDrawColumnCell:
Código:
procedure TForm1.DBGrid1DrawColumnCell(
Sender: TObject; const Rect: TRect;
DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
if not (gdSelected in State) then
begin
if Odd(Table1.RecNo) then
DBGrid1.Canvas.Brush.Color := clYellow
else
DBGrid1.Canvas.Brush.Color := clGreen;
end;
DBGrid1.DefaultDrawColumnCell(Rect, DataCol, Column, State);
end;
// Saludos |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
|