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
210
turn off / disable row highlight
posted

Hi

I am trying to turn off/disable the default blue highlight that shows when a row is selected in the grid.

This is needed because, I mark certain cells in certain rows with a red background to denote negative values.

Unfortunately the blue colored row highlight overrides this red background for the row that i set selected and the entire row is highlighted in red.

I was able to turn off the row level highlight by using the below line in the AfterCellActivate event.

 MyFacilityRatingCustom.Grid.DisplayLayout.Override.ActiveRowAppearance.Reset()

But I am not able to disable the activatedcell highlight. The active cells till highlights in White.

The below statement doesnt work

MyFacilityRatingCustom.Grid.DisplayLayout.Override.ActiveCellAppearance.Reset()

 

 

Parents
  • 469350
    Verified Answer
    Offline posted

    The grid's default Preset sets colors on the ActiveRowAppearance and ActiveCellAppearance. Resetting these in the AfterCellActivate is very inefficient and redundant. You should just reset these two property in the designer at design time - you don't need to do it in code every time the cell activates. 

Reply Children