Anyone have a simple example of the above? I found this kbase but would appreciate a full example if possible.
Thanks,
Tom
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;
USING Progress.Lang.*.
USING System.EventArgs.
CLASS common.NoRectDrawFilter IMPLEMENTS Infragistics.Win.IUIElementDrawFilter:
METHOD PUBLIC LOGICAL DrawElement( INPUT drawPhase AS Infragistics.Win.DrawPhase, INPUT-OUTPUT drawParams AS Infragistics.Win.UIElementDrawParams ):
RETURN TRUE.
END METHOD.
METHOD PUBLIC Infragistics.Win.DrawPhase GetPhasesToFilter( INPUT-OUTPUT drawParams AS Infragistics.Win.UIElementDrawParams ):
RETURN Infragistics.Win.DrawPhase:BeforeDrawFocus.
END METHOD.
END CLASS.