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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Next Cell Position

Thread ID:

Created:

Updated:

Platform:

Replies:

18605 Sep 3,2004 10:56 AM UTC Sep 3,2004 12:37 PM UTC WinForms 6
loading
Tags: GridControl
Jorge
Asked On September 3, 2004 10:56 AM UTC

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 11:05 AM UTC

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

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

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

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

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 11:51 AM UTC

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 12:07 PM UTC

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

Administrator [Syncfusion]
Replied On September 3, 2004 12:37 PM UTC

thank you. It''s working!

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.

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

;