Problem (DBGrid x Option DefaulDrawing (True/False) x OnDrawColumnCell
Original Reporter info from Mantis: josemcamargo
-
Reporter name: Jose Maria Camargo
Original Reporter info from Mantis: josemcamargo
- Reporter name: Jose Maria Camargo
Description:
event occurs in any situation and the unstructured
Steps to reproduce:
Exemple:
DefaultDrawing := True;
procedure TForm8.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
with DBGrid1 do
begin
if Odd( DataSource.DataSet.RecNo) then
Canvas.Brush.Color := clSilver
else
Canvas.Brush.Color := clMoneyGreen;
Canvas.FillRect(Rect);
DefaultDrawColumnCell(Rect,DataCol,Column,State);
end;
end;
Mantis conversion info:
- Mantis ID: 25225
- OS: Ubuntu
- OS Build: 10.04
- Build: 1.0.12
- Platform: Linux
- Version: 2.3 (SVN)
- Fixed in version: 1.3 (SVN)
- Fixed in revision: 46408 (#47e31617)
- Target version: 1.4