Ver Mensaje Individual
  #2  
Antiguo 16-04-2007
Loviedo Loviedo is offline
Miembro
 
Registrado: dic 2004
Posts: 214
Reputación: 0
Loviedo cantidad desconocida en este momento
Prueba esto a ver si te sirve.

Código Delphi [-]
procedure TFLdiario1.DBGrid1DrawColumnCell(Sender: TObject;
  const Rect: TRect; DataCol: Integer; Column: TColumn;
  State: TGridDrawState);
begin
  if DM.Query4TITULO.Text = 'Deudores' then
    TDBGrid(Sender).Canvas.Font.Color := clRed
  else if DM.Query4COMUNES.Text = 'X' then
    TDBGrid(Sender).Canvas.Font.Color := clBlue;
  if gdSelected in State then
    if (DM.Query4TITULO.Text = 'Deudores') or (DM.Query4COMUNES.Text = 'X')then
      TDBGrid(sender).Canvas.Font.Color := clYellow;
  TDBGrid(Sender).DefaultDrawColumnCell(Rect,DataCol,Column,State);
end;


saludos.
Responder Con Cita