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.

Next Cell Position

Thread ID:





18605 Sep 3,2004 06:56 AM Sep 3,2004 08:37 AM Windows Forms 6
Tags: GridControl
Asked On September 3, 2004 06:56 AM

I have a table with 22 columns and I runt it using tab key but I want to move to the first cell of the next row when I press tab key in the 17th row. How can I do this?

Administrator [Syncfusion]
Replied On September 3, 2004 07:05 AM

See this KB article. http://www.syncfusion.com/Support/article.aspx?id=10477

Administrator [Syncfusion]
Replied On September 3, 2004 07:15 AM

but I''m not on the last cell of the row

Administrator [Syncfusion]
Replied On September 3, 2004 07:42 AM

So you meant the 17th column, and not the 17th row in your description? To do special currentcell navigation like this, you would use the QueryNextCurrentCellPosition event. There, if e.RowIndex and e.ColIndex point to your special cell, then use grid.CurrentCell.MoveTo to move the current cell where you want it to be, and also set both e.Handled and e.Result to true.

Administrator [Syncfusion]
Replied On September 3, 2004 07:51 AM

i''m doing this and still doesn''t work. It keeps advancing till the end of the row Private Sub gridFabricoPlacas3_QueryNextCurrentCellPosition(ByVal sender As System.Object, ByVal e As Syncfusion.Windows.Forms.Grid.GridQueryNextCurrentCellPositionEventArgs) Handles gridFabricoPlacas3.QueryNextCurrentCellPosition If (e.ColIndex >= 17) And (e.RowIndex < Me.gridModel.RowCount) Then Me.gridFabricoPlacas3.CurrentCell.MoveTo(e.RowIndex + 1, 1) e.Handled = True e.Result = True End If End Sub

Administrator [Syncfusion]
Replied On September 3, 2004 08:07 AM

Sorry. You probably need to set e.Result = False instead of True.

Administrator [Syncfusion]
Replied On September 3, 2004 08:37 AM

thank you. It''s working!


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.