Syntax to "unhighlight" a row in a customization layer

I’ve been tasked to highlight a line in the Material Request Queue when the from and to warehouse aren’t the same (i.e. interplant xfer). I created a rule to do so when the two warehouse fields aren’t the same and it works beautifully - but too good. When the warehouse involved is a quality whse I don’t want to highlight sooooooo I’m trying to add a new rule with the wizard to “unhighlight” the row when there is a “Q” in the whse id. Epicor gives you very few options as far as highlighting (or not) so am stuck as to how to go about making this work.

The code generated for highlighting is:

private void CreateRowRuleUnselectedFromWhseNotEqual()
{
// Description: HighlightInterPlant
// **** begin autogenerated code ****
RuleAction warningUnselected_RowAction = RuleAction.AddRowSettings(this.oTrans, “Unselected”, false, SettingStyle.Warning);
RuleAction[] ruleActions = new RuleAction[] {
warningUnselected_RowAction};
// Create RowRule and add to the EpiDataView.
RowRule rrCreateRowRuleUnselectedFromWhseNotEqual = new RowRule(“Unselected.FromWhse”, RuleCondition.NotEqual, “Unselected.ToWhse”, ruleActions);
((EpiDataView)(this.oTrans.EpiDataViews[“Unselected”])).AddRowRule(rrCreateRowRuleUnselectedFromWhseNotEqual);
// **** end autogenerated code ****

Ideally, I would just add an “or” condition to the code and skip the rule to “unhilight” but haven’t a clue as to how to break into the code to build that out.

Any suggestions, tips, hacks, etc are greatly appreciated.

Thanks

I solve this problem by creating a second rule.

They process in order so you can have your first rule set all rows that don’t match to a certain color, then have your second rule change the color of the rows that contain Q to the standard color.

That was my initial move - to create a new rule to remove color. However, Epicor doesn’t have an option for “no color”. If you have the command syntax to do so, please pass along.

Wouldn’t setting the style to ‘Default’ work?