Ver Mensaje Individual
  #2  
Antiguo 02-05-2004
Avatar de marcoszorrilla
marcoszorrilla marcoszorrilla is offline
Capo
 
Registrado: may 2003
Ubicación: Cantabria - España
Posts: 11.221
Reputación: 10
marcoszorrilla Va por buen camino
Prueba con este código:

Código Delphi [-]

var
  Form1: TForm1;
  
        type
  TCustomDBGridCracker = class(TCustomDBGrid);   {Le poneis el nombre que querais}
implementation

{$R *.DFM}

procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
  DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
  with TCustomDBGridCracker(Sender) do begin
    if DataLink.ActiveRecord = Row - 1 then begin
      Canvas.Brush.Color := clHighLight;
      Canvas.Pen.Color := clHighLightText;
    end;

    DefaultDrawColumnCell(Rect, Datacol, Column, State);
  end;
end;

Un Saludo.
__________________
Guía de Estilo de los Foros
Cita:
- Ça c'est la caisse. Le mouton que tu veux est dedans.
Responder Con Cita