I'd like to change the grid so that tabbing goes down the rows, then goes back up to the top of the next column, and continues down (only for focus-enabled cells, of course). However, I didn't see anything in the object model that would automatically support this, and my attempts to play around with various events have been unsuccessful so far. Any help would be appreciated...
-- Sean T.
ADAdministrator Syncfusion Team February 19, 2003 04:52 AM
what you have to do is handle the TAB key yourself. Do that that in OnKeyDown and OnCurrentCellKeyDown events.
From these methods call a custom method that moves the current cell. If you have source code for EG, take a look at the CurrentCell.Move method. That's where you find the WrapCell code for wrapping the cell at the end of the row to the beginning of next code.
If you create your own Move method similar to the one in CurrentCell.Move, copy that code and modify it to your needs you should be able to get this working.
One note. In that code, instead of calling ExternalMove/InternalMove just call CurrentCell.Move.
I haven't tried that. But that's how I would approach this. Let me know if run into problems.