Ver Mensaje Individual
  #2  
Antiguo 30-08-2003
Avatar de jhonny
jhonny jhonny is offline
Jhonny Suárez
 
Registrado: may 2003
Ubicación: Colombia
Posts: 7.058
Reputación: 30
jhonny Va camino a la famajhonny Va camino a la fama
Si se puede es algo asi:
En el evento DrawColumnCell de la DbGrid adecua lo siguiente:

Código:
if (CondicionCliente= 'SI') then
begin
      DBGfechaserv.Canvas.Brush.Color:=clYellow;
      DBGfechaserv.Canvas.FillRect(Rect);
      DBGfechaserv.Canvas.Font.Color:=clWindowText;
end
else
begin
     if (CondicionCliente ='No') then
     begin
         DBGfechaserv.Canvas.Brush.Color:= clRed;
         DBGfechaserv.Canvas.FillRect(Rect);
         DBGfechaserv.Canvas.Font.Color:=clWindowText;
     end
end;
Si quieres mas informacion debes ir a:
www.clubdelphi.com/~cadetill
__________________
Lecciones de mi Madre. Tema: modificación del comportamiento, "Pará de actuar como tu padre!"

http://www.purodelphi.com/
http://www.nosolodelphi.com/
Responder Con Cita