I have an UltraGrid in a customization that is bound to a temp table created in the customization. Everything works well except that I want to change the row color based on the value of a column called “ProcessFlag”. When the value is “NEW”, I want the SettingStyle,OK (green). when the value is “DUPE”, I want SettingStyle.Warning (yellow). Red is too harsh and orange would have been preferred if available, so yellow will have to do. Any other value should be the default. I tried to use RowRules but couldn’t get them to work. Couldn’t get them to work on a single cell, let alone an entire row.
I searched for RowRule and found code that someone got working but still no luck for me. I did find where I went wrong on getting the entire row to highlight. So no syntax errors now but still no luck in getting the rows to highlight.
For whatever reason, the row rules were not working on the grid when UseAppSettings was set to true. Maybe due to it being bound to a table that was created in the customization script and manually added to the EpiDataView collection in oTrans. Since this is a utility program, I’m not concerned if the appearance of the grid conforms aesthetically with the rest of the screen
@BBussey - Thanks! Your code snippet helped me figure out how to set a cell color to something other than the SettingStyles of OK (green), Warn (red), Highlight (blue), or Error (yellow? I haven’t tested).
I got a request to highlight a $0 cost cell in Order Entry orange, so I created a Custom Row Rule, set the style to OK, and then added your color code to the script editor and overwrote ‘SettingStyle.OK’ with ‘settingOrange’. Thanks!
Quick Reference in case a newbie like me needs to tweak some colors in some old VB customization and don’t know what’s available. These were some of the colors available found in Epicor10.2.700
SettingStyle.OK = green
SettingStyle.Error = red
SettingStyle.Highlight = blue
SettingStyle.Warning = yellow