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
3045
How do you override the TAB destination cell?
posted

Depending on the value of the first cell, I want to move to a specific cell of the AddRow after pressing TAB. I use NextCellByTab action to go to the third or fourth cell. I can see the third or fourth cell being selected and then the second cell is finally selected.

I do the check of the first cell's value inside BeforeExitEditMode and sets a flag that I check inside AfterExitEditMode where I call the action NextCellByTab. How do I override the destination cell determined by the TAB key?

I'm not trying to fully override the TAB behavior of the grid just for the first cell.

Parents
No Data
Reply
  • 469350
    Offline posted

    I would use the BeforePerformAction method. Check for an action of NextCellByTab. You can use the grid's ActiveRow and ActiveCell properties to determine which cell you are in, and then (optionally) cancel the action and set focus to whatever cell you want.

Children