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
570
Active/Selected Row Appearance
posted

I working with a grid and want to turn off all the Active/Selected Row Appearance Settings, I want the Active/Selected Row to look just like the rest of the grid. When the user clicks on a cell in the grid, I do not want there to be any appearance change. I have tried adjusting the all the properties under the following settings with no effect other than being about to change the text color, the background gradient has stayed:

1. ActiveCellAppearance

2. ActiveRowAppearance

3. ActiveRowCellAppearance

4. SelectedCellAppearance

5. SelectedRowAppearance

I am using NetAdvantage for Windows Forms 2008 Vol. 1 Bundle.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

        By default, when you place a new grid on a form, the designer loads a preset which will set the ActiveCellAppearance and ActiveRowAppearance. So you should go into the property grid at design-time and reset the grid.DisplayLayout.Override.ActiveRowAppearance and ActiveCellAppearance.

        If you don't want the user to be able to select rows, then you should set SelectTypeRow to None.  

Children