Cita:
Empezado por cslbcn
Gracias por responder.
El compilador dice que no reconoce CellRect ni Row
|
Hola de nuevo, para que reconozca directamente como lo puse, es importante que desprotejas el DBGrid:
Código Delphi
[-]
type
TDBGrid = class(DBGrids.TDBGrid);
Sino, por lo menos has un Cast a TStringGrid:
Código Delphi
[-]
TStringGrid(TDBGrid(Sender)).Canvas.Font.Color := clWhite;
TStringGrid(TDBGrid(Sender)).Canvas.Brush.Color := clBlue;
aRect := TStringGrid(TDBGrid(Sender)).CellRect(DataCol+1,TStringGrid(TDBGrid(Sender)).Row);
TStringGrid(TDBGrid(Sender)).DefaultDrawColumnCell(aRect,DataCol,Column,State);
Saluditos