Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
WinGrid Reset Colors
posted

Hi,

I have a wingrid that is bound to a hierarchical dataset (3 bands). Based on user interaction, I may change the background color of a bunch of rows in a given band, AND/OR individual cells.

I want to be able to reset back to the original untampered background colors, quickly and efficiently. How might I do this?

Code snippet for the highlighting is as follows...how do I reverse the changes!!!

row.appearance.backcolor = color.crimson '// highlighting a row.

row.rowselectorappearance.backcolor = color.green

row.childbands(0).Rows(0).Appearance.backcolor = Color.blue

row.Cells(field).Appearance.BackColor = Color.Aquamarine

TIA