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
Thank you that made it!
e.Row.Band is a backward pointer to the band that owns the row. So the code you have here will affect every row in the band, not just one row.
You need to set the property on the row:
e.Row.RowSelectorAppearance.BackColor = Color.Red;
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) {
}
Please let me know if you have any other quesitons or troubles implementing this.
Sincerely,
Tihomir TonevAssociate Software DeveloperInfragistics