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
400
Turn off the highlight row using an appstyling?
posted

Hi,

I read the "Turnoff the highlight on the first row of the grid." post. In our application all our customs ultraGrids use the appstyling property. Is it possible to override somehere the ActiveRowAppearance and the ActiveCellApperance to be able to set the backColor to white? I had try lot of event but with no good result. In the majority of our use case, we've got a Master grid witch is editable, and a detail grid that is only used for display the childs (no edit). So that make no sense to see on the detail grid an highlight row...

 Thanks for your help!

Gabriel

  • 469350
    Verified Answer
    Offline posted

    Hi Gabriel,

    If you are loading an applicatoin style, then the style will (by default) override the settings of the grids in the application. So you can't just turn off the ActiveRow appearance in a single grid. There are several approaches you could take to acheive what you want.

    1) You could modify the style library you are using to not apply an active row and active cell color, then apply an ActiveRow appearance to one grid in the application.

    2) You could use mulitlpe StyleSets in your style library and apply a different one to each grid using the StyleSetName property on the grid. 

    3) You could set the ResolutionOrder on the grid's ComponentRole (in the style library) so that the Control settings take precedence over thestyle settings.This means ALL settings, though, so this probably won't give you desirable results.