Ver Mensaje Individual
  #16  
Antiguo 07-10-2010
Avatar de rgstuamigo
rgstuamigo rgstuamigo is offline
Miembro
 
Registrado: jul 2008
Ubicación: Santa Cruz de la Sierra-Bolivia
Posts: 1.646
Reputación: 17
rgstuamigo Va por buen camino
Arrow

Pues yo para pintar la fila que tiene actualmente el foco lo hago así:
Código Delphi [-]
procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
  DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
      if (gdSelected in State) then //si la actual columna está seleccionada
       begin
        (Sender as TDBGrid).Canvas.Brush.Color:=clBlack;//pinto el fondo
        (Sender as TDBGrid).Canvas.Font.Color:=clRed;//cambio el color de la fuente                 
       end
end;
Espero sea de ayuda....
Saludos...
__________________
"Pedid, y se os dará; buscad, y hallaréis; llamad, y se os abrirá." Mt.7:7

Última edición por rgstuamigo fecha: 07-10-2010 a las 23:10:57.
Responder Con Cita