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
425
Cell BackColor in ActiveRow
posted

How do I set the BackColor of specific cells when the row is activated? I am handling the BeforeRowActivate event and looping through the Cells collection to determine which cells qualify for a different BackColor (the cell must be empty and have an EditorControl of a certain type). The grid.DisplayLayout.Override.ActiveRowAppearance value set to SystemColors.Highlight. I can make it work by using grid.DisplayLayout.Override.ActiveCellAppearance.BackColor but I want more than just the ActiveCell. I followed Knowledge Base artice KB01748 and tried using the cells Appearance object but to no avail. See attached pic for a visual.