Ver Mensaje Individual
  #2  
Antiguo 16-07-2007
loxod loxod is offline
Miembro
 
Registrado: feb 2007
Ubicación: Mexico
Posts: 45
Reputación: 0
loxod Va por buen camino
Si lo que quieres es que un DBGrid cambio el color del renglo seleccionado, esto te puede servir:

Código Delphi [-]
procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
  DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
   If (gdFocused in State)
    then dbgrid1.canvas.brush.color := clYellow;

dbgrid1.DefaultDrawColumnCell(rect,DataCol,Column,State)
end;
Responder Con Cita