I have a table in which the cells are color coded. To achive the color coding, I created a derived Column class and override its PaintCell method as follows.
Public Overrides Sub PaintCell(ByVal dci As NineRays.Windows.Forms.Grids.CellDrawInfo)
dci.customBackColor = GetBackColor(dci.row)
MyBase.PaintCell(dci)
End Sub
The table looks good. However, when I select the drop-down filter list for the column, the items in the list are also color coded, which is not the behavior that I want. I assume that the items in the drop-down list are also being drawn by my PaintCell method. Is there any way for me to tell whether PaintCell is being called to draw an item in the drop-down list or to draw the table cell?