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
1850
Focus problem tabbing into grid.
posted

When tabbing into a grid where TabNavigation = TabNavigation.NextControlOnLastCell. The Navigation will start at the Top and go through the grid until the last cell. The problem is that after leaving the grid and returning (via tab) the entry keeps happening at the last cell instead of starting back at the top.

How can I change this?

thanks

-Ken

  • 20872
    Offline posted

    Hello Ken,

    We are still following this thread.

    If you need any further assistance with this matter please feel free to let us know.

  • 469350
    Offline posted

    Hi Ken,

    I think you would have to handle the Enter event of the grid and activate the cell you want and put it into edit mode. I'm not entirely sure how you would do this, though, since there is no way to tell if the user tabbed into the grid or clicked on a cell, and presumably you would only want to do this when the user tabs. Maybe trap for the tab key and keep a flag.