]
Assunto: [delphi-br] Re: Colorir apenas a linha selecionada do DBGrid, sem
usar o RowSelect
Oi Christian,
Eu consegui pintar a linha da tabela com:
procedure TFmCtrlGrid.DBGrid2DrawColumnCell(Sender: TObject;
const Rect: TRect; DataCol: Integer; Column: TColumn;
State: TGridDrawState
Oi Christian,
Eu consegui pintar a linha da tabela com:
procedure TFmCtrlGrid.DBGrid2DrawColumnCell(Sender: TObject;
const Rect: TRect; DataCol: Integer; Column: TColumn;
State: TGridDrawState);
begin
If gdSelected in State then
begin
Dbgrid2.Canvas.Brush.Color:= clRed;
DBGri
2 matches
Mail list logo