[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Indicates if the default drawing mechanism is used to draw the background for cells.
Source position: grids.pas line 1212
protected property TCustomGrid.DefaultDrawing : Boolean |
DefaultDrawing is a Boolean property which indicates if the default drawing mechanism is used to draw the background for cells. The default value for the property is True.
Normally, the grid prepares its canvas using the properties needed for the kind cell type that is being painted. DefaultDrawing indicates that the grid control handles drawing the background for the cell (including a visible cell Editor) using the relevant properties.
Use the OnDrawCell event handler to handle drawing the value for the cell. Set DefaultDrawing to False when the OnDrawCell event handler is responsible for both the background and content in the cell.
Changing the value for the property causes the Invalidate method to be called to redraw the control.
DefaultDrawing is used in the PrepareCanvas method to configure the control Canvas for a drawing operation.