![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#5
|
||||
|
||||
|
Hola, MITOPE.
Prueba este código a ver si te sirve Código:
procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
DataCol: Integer; Column: TColumn; State: TGridDrawState);
var
Num: Integer;
R: TRect;
begin
Num:=TStringGrid(DBGrid1).Row;
R:=TStringGrid(DBGrid1).CellRect(DataCol,Num);
if R.Top=Rect.Top then
with DBGrid1 do
begin
if (gdFocused in State) then
Canvas.Font.Color:=clWhite
else
Canvas.Font.Color:=clRed;
Canvas.Font.Style:=[fsBold];
DefaultDrawColumnCell(Rect,DataCol,Column,State);
end;
end
![]()
__________________
Lo importante no es saber, sino tener el e-mail del que sabe. |
|
|
|