change the Current Cell Location

Is there a way to move the current cell to specific location on the grid (row1, col5 for example)?  Also, is there a way to have hidden cells to not have a tab stop?  I hid several cells but even though they don't see the cells the user has to tab over them.

3 Replies

MA Mohanram Anbukkarasu Syncfusion Team August 1, 2018 12:14 PM UTC

Hi Derek, 
 
Thanks for contacting Syncfusion support. 
 
Query 
Solution 
Is there a way to move the current cell to specific location on the grid (row1, col5 for example)?   
The currentCell can be moved to a specific cell by using the MoveToCurrentCell method. Please refer to the below code example. 
 
Code Example: 
Private Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click 
       Me.sfDataGrid.MoveToCurrentCell(New RowColumnIndex(1, 0)) 
End Sub 
 
Is there a way to have hidden cells to not have a tab stop?   
The reported scenario has been confirmed as a defect and it will be fixed in our upcoming Volume 2 SP2 release. 
 
 
Regards, 
Mohanram A. 



DG Derek Geldart August 1, 2018 08:10 PM UTC

After doing some research I found that the following command in vb.net will not run

Me.sfDataGrid.MoveToCurrentCell(New RowColumnIndex(1, 0)) 

The RowColumnIndex has to be Syncfusion.WinForms.GridCommon.ScrollAxis.RowColumnIndex and then it runs fine.

Am I missing and import to get the first command to work?


MA Mohanram Anbukkarasu Syncfusion Team August 2, 2018 12:40 PM UTC

Hi Derek, 
 
Thanks for your update. 
 
Yes. You have to import the below namespace in your sample to use the SfDataGrid.MoveToCurrentCell method. 
 
Imports Syncfusion.WinForms.GridCommon.ScrollAxis 
 
Otherwise, You can also use the below code to move the current cell to any specific cell. 
 
Me.sfDataGrid.MoveToCurrentCell(New Syncfusion.WinForms.GridCommon.ScrollAxis.RowColumnIndex(1, 0)) 
 
Regards, 
Mohanram A. 


Loader.
Up arrow icon