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

CurrentCell Behavior

Thread ID:

Created:

Updated:

Platform:

Replies:

19013 Sep 15,2004 03:09 PM Sep 15,2004 05:09 PM Windows Forms 8
loading
Tags: GridControl
Madhavi Balusu
Asked On September 15, 2004 03:09 PM

Hi Clay, I have a grid where alternate columns are not enabled. I use these columns to show labels (like "FirstName", "LastName" etc). So when I am in a cell in the enabled column and press Tab, I would expect it to find the next enabled cell and move to it. So if I have columns 1,3,5 not enabled and columns 2,4,6 enabled. If I press tab when I am in [1, 2], I would expect it to go to [1, 4] and so on. In other words, how do I set the TabOrder, in such a case? Thanks!

Administrator [Syncfusion]
Replied On September 15, 2004 03:23 PM

It should happen naturally. Did you try it and it did not work? It seems to work for me in this sample. To tell it to wrap to the next row, you set the grid.Model.Options.WrapCellBehavior property. Tab_6128.zip

Madhavi Balusu
Replied On September 15, 2004 04:15 PM

You used GridDataBoundGrid, I am using GridControl. Does not work with GridControl.

Administrator [Syncfusion]
Replied On September 15, 2004 04:36 PM

It seems to work ok for me in a gridControl as well. I am using the latest code base, 2.1.0.9. Tab_6943.zip

Madhavi Balusu
Replied On September 15, 2004 04:38 PM

Actually you are right. It does move the currentcell, however it is moving it in a weird way for GridControl. The Caret does not show up in the newly moved cell!!

Madhavi Balusu
Replied On September 15, 2004 04:44 PM

Sorry to be hitting you with these, but: Neither does it move the focus to the "next" control ( could be a button ) on this form when it is in the "last" cell of the grid and I press Tab.

Madhavi Balusu
Replied On September 15, 2004 04:48 PM

Never mind me: Answer was: this.m_grid.ActivateCurrentCellBehavior = GridCellActivateAction.SetCurrent;

Madhavi Balusu
Replied On September 15, 2004 04:56 PM

Hey Clay, I still need answer for this though: Neither does it move the focus to the "next" control ( could be a button ) on this form when it is in the "last" cell of the grid and I press Tab. Thanks!

Administrator [Syncfusion]
Replied On September 15, 2004 05:09 PM

See the response to the Wrapping question in this thread. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=7010

CONFIRMATION

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.

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.

;