We're using 8.3 and we need to remove the row selection bar from some of our grids without completely disabling app styling (we also do not need row selection for these grids - they are just for display purposes).
Looking at another post, I tried the following:
grd.DisplayLayout.Override.ActiveRowAppearance.Reset()
grd.DisplayLayout.Override.SelectTypeRow = SelectType.None
These don't work unless I set AppStyling to False, which doesn't look good. Can I keep AppStyling and still get the effect I want?
Hi Amber,
To turn off row selection, you can use:
You are already doing that. So my guess is that your ActiveRow is being highlighted in the grid because of your application style.
So there are a couple of ways you could get around this:
1) Modify the Application Style Library so that it does not apply an appearance to the ActiveRow. You would probably lookat the GridRow or UltraGridRow UIRole and modify the Active state to remove whatever settings are applied.
2) Use a DrawFilter to override the Drawing of the row.
A lot of the grids in our application need an active row style, plus we have a lot of different styles that we offer our users. Are you suggesting that we make copies of all our styles, remove the active row setting in each copy, figure out which style the user is using and assign the correct copy to the handful of grids that need to have the active row style removed? Or is there some way to do this in code?
As for a draw filter, can you provide a brief example of how to do that? Are there any 'side effects' from using a draw filter?