Row Rule on added column

We have a customized Time Phase screen. I have added custom columns to the time phase dataview and they work as intended. I was tasked to cause a row in the grid to turn a color to indicate if the sales order displayed in the dataview matched certain conditions. I added a row rule on the dataview column and it indeed causes the row to change color. Now if another part number is called up, the row in the grid does not “un-color” - once set it does not reset. closing the form and re-opening works as expected until another part is encountered that matches the rule then that row stays colored in the grid :frowning:

anyone have any ideas on how to make this work as desired?

Can you add the “oposite” of the rule?
Say your Rule Says
If Field = 3 Then Red

Add a Rule that says If Field <> 3 Then Not Red (I believe there is a “Normal”) option in the actions.

I tried Default, Highlight, nothing overwrites the red once it is set
edvTimePhas.ClearRowRules() does clear it but then it does not work again

How did you add the coulumn? Did you add it to the Grid or to the Original Data Table?

in the Initialize Custom Code block:

	if (!(edvTimePhas.dataView.Table.Columns.Contains("Hold"))) 
		edvTimePhas.dataView.Table.Columns.Add(new DataColumn("Hold"));
		edvTimePhas.dataView.Table.Columns["Hold"].ExtendedProperties["ReadOnly"] = true;

Interesting observation - if the subsequent part is looked up using the part search button, the colored row resets vs. typing the part number directly …

EDIT - A little to optimistic - still does it regardless of method of entering part number :frowning: