RES: [delphi-br] Re: Colorir apenas a linha selecionada do DBGrid, sem usar o RowSelect

2004-10-26 Por tôpico Christian Balz
] 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

[delphi-br] Re: Colorir apenas a linha selecionada do DBGrid, sem usar o RowSelect

2004-10-25 Por tôpico ms_goncalves
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