Occurs when a cell in the grid needs to be drawn.
Public Event CellPainting As CellPaintingEventHandler
This event is fired if the OwnerDraw property is set to true, to allow for custom painting on selected cells.
The parameters for the CellPainting event are described below:
Graphics As Graphics
This parameter contains a handle to the control's device context.
Row, Col As Integer
These parameters define the cell that is about to be drawn.
Bounds As RectangleF
Returns the rectangle where the cell should be drawn.
Handled As Boolean
Sets whether the event has finished drawing the cell.