Hi,
I have a grid with a style defined for active row (background color is blue), and it works fine.
But in case the user is editing one cell of this active row, I would like the background of the entire row not to be blue (to remain normal).
Is there a way to achieve this (through .isl or through code) ?
Thanks,Verane.
Hi Verane,
Do you just want the active cell to appear normal? Or do you want the entire row to appear normal any time a cell goes into edit mode?
For the former, all you have to do is use the ActiveCellAppearance. You could set the ForeColor and BackColor to the same colors your normal cells are using.
For the latter, you would have to handle it in code. It's pretty easy. You just handle the BeforeEnterEditMode and BeforeExitEditMode events. In BeforeEnterEditMode, you reset the ActiveRowAppearance and in the BeforeExitEditMode, you set it back.
Hi Mike,
I want to change the color of the entire row.
I already tried what you suggested, but changing the color in the BeforeEnterEditMode like this:
ActiveRow.Appearance.BackColor =
Color.White;
has no effect. The line remains blue when I enter in edition, whereas I can see in debug mode that I pass in the BeforeEnterEditMode function containing the line above.
Did you tried it ?
Regards,
Verane.