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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Tab key behavior

Thread ID:





23788 Jan 19,2005 04:08 PM UTC Jan 19,2005 08:46 PM UTC WinForms 2
Tags: GridControl
Daniel Chait
Asked On January 19, 2005 04:08 PM UTC

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!

Administrator [Syncfusion]
Replied On 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.

Daniel Chait
Replied On January 19, 2005 08:46 PM UTC

Thanks - that did the trick


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon