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
140
Recursive call
posted

I get a recursive call when i try to activate another cell (grid.ActiveCell=...) from inside BeforeCellDeactivate event. Is this correct?

 

  • 469350
    Verified Answer
    Offline posted

     It makes sense, actually. BeforeCellDeactivate fires BEFORE the cell has been deactivated. By setting focus to another cell, you are causing the same cell (which is still active) to try to deactivate again.

    This is very easy to get around. Use the EventManager to disable the BeforeCellDeactivate event while you are in it.