From RAD Studio API Documentation
Jump to: navigation, search


property DefaultDrawing: Boolean read FDefaultDrawing write FDefaultDrawing default True;


__property bool DefaultDrawing = {read=FDefaultDrawing, write=FDefaultDrawing, default=1};


Type Visibility Source Unit Parent
property protected
Vcl.Grids TCustomGrid


Determines whether the Cells are painted when the grid is drawn.

Set DefaultDrawing to true to have the grid automatically paint the cells in the grid, including adding the background color, the 3-D effects on the fixed cells, and the focus rectangle around the selected cell. Set DefaultDrawing to false to skip the painting of the cells when the grid is drawn.

When DefaultDrawing is false, the cells should be painted using the DrawCell method. For TCustomGrid, DrawCell is an abstract method. Descendants of TCustomGrid use DrawCell to provide their own customized drawing code, or to generate an OnDrawCell event.

See Also