Object Reference > True DBGrid Events > Paint Event |
The Paint event is triggered whenever the grid repaints itself (that is, whenever it receives a WM_PAINT message).
object_Paint ( )
Arguments
None
This occurs frequently in the Windows environment and is generally useful only for special circumstances. In this event, programmers familiar with the Windows API may use the grid's hWnd property to paint special effects such as lines, bitmaps, and icons in appropriate cells of the grid.
Note
This event is included for backward compatibility with earlier versions of True DBGrid. New applications should use the OwnerDrawCell event to draw directly into the grid's device context.