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
1165
Remove Selected Row Appearance
posted

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?

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi Amber,

    To turn off row selection, you can use:

    grd.DisplayLayout.Override.SelectTypeRow = SelectType.None

    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.

Reply Children