Anyone have a simple example of the above? I found this kbase but would appreciate a full example if possible.
DrawFilter will be an overkill for this purpose unless you are really going to create a custom row display. I think handling InitializeRow event is a much better place for changing row/cell color.
Here is a sample DrawFilter to remove focus rectangle;
CLASS common.NoRectDrawFilter IMPLEMENTS Infragistics.Win.IUIElementDrawFilter:
METHOD PUBLIC LOGICAL DrawElement( INPUT drawPhase AS Infragistics.Win.DrawPhase, INPUT-OUTPUT drawParams AS Infragistics.Win.UIElementDrawParams ):
METHOD PUBLIC Infragistics.Win.DrawPhase GetPhasesToFilter( INPUT-OUTPUT drawParams AS Infragistics.Win.UIElementDrawParams ):