We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Tab key behavior

How can I change the tab key behavior? What I want is: 1. When the user tabs to the end of a row, go to the next row. 2. When the user tabs to the last cell in the last row, go to the next control in the tab order on the form hope this is clear - thanks!

2 Replies

AD Administrator Syncfusion Team January 19, 2005 06:46 PM UTC

If this is a grid on a form, then there is a property setting grid.Model.Options.WrapCellBehavior = GridWrapCellBehavior.NextControlInForm that should handle this. If your grid in contained in some panel, groupbox, tabpage, or other container, then you will likely need to handle the WrapCellNextControlInForm event and actually move the focus to where you want it in your container. Here is a sample that might help. The sample has 2 grids, the one on the left is parented to the form, and the one of the right is on a panel. Out of the box, just setting the NextControlInForm value, makes the grid on the left behave as expected, allowing you to tab from button1 to the grid to button2. But the grid on the panel does not behave as expected. There you tab from button3 to the grid to button 1, passing over button 4 which is the next button on the panel.


DC Daniel Chait January 19, 2005 08:46 PM UTC

Thanks - that did the trick

Loader.
Up arrow icon