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
RowSelectorAppearance for a specific row

I need to change the RowSelector color for an specific row, I am doing something like this in the InitializeRow:

e.Row.Band.Override.RowSelectorAppearance.BackColor = Color.Red

My problem is that this changes the color for all rows selectors in the grid, I want to change it only for specific rows.

Is this possible?

Thank you

  • 840
    Offline posted

    Hello Jose,

    InitializeRow fires everytime a row is changed or initialized for the first time. In order to have only a specific row's RowSelector painted, you will have to add a condition

    if(this is the row) {

    e.Row.Band.Override.RowSelectorAppearance.BackColor = Color.Red


    Please let me know if you have any other quesitons or troubles implementing this.


    Tihomir Tonev
    Associate Software Developer

Reply Children