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
210
How to change the style of a row when a cell of this row is edited ?
posted

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.

Parents
No Data
Reply
  • 469350
    Offline posted

    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.

Children