Your Paint method is called for every cell.
Just draw your background in there. Everything you
need is supplied in the arguments
Protected Overloads Overrides Sub Paint(ByVal g As System.Drawing.Graphics,
_
ByVal bounds As System.Drawing.Rectangle, _
ByVal source As System.Windows.Forms.CurrencyManager, _
ByVal rowNum As Integer, _
ByVal backBrush As System.Drawing.Brush, _
ByVal foreBrush As System.Drawing.Brush, _
ByVal alignToRight As Boolean)
If noCheckbox Then
g.FillRectangle(backBrush, bounds)
Else
MyBase.Paint(g, bounds, source, rowNum, backBrush, foreBrush,
alignToRight)
End If
End Sub
/claes
> That works great, except the cells without the checkbox are a different
> color. Is there a way to call my own Paint method in this case to color
[quoted text clipped - 3 lines]
>
> -- Greg