Category / Section
How to move the currentcell to particular cell by skipping specified number of cells in WinForms GridGroupingControl?
1 min read
InternalMove method
The current
cell of a grid can be moved by skipping n number of specified
cells in any direction. The following InternalMove method can
be used to achieve this scenario.
C#
//Move's the Grid CurrentCell by skipping 2 cells in the right direction (From 4,1 To 4,3).
this.gridGroupingControl1.TableControl.CurrentCell.InternalMove(GridDirectionType.Right, 2, GridSetCurrentCellOptions.ScrollInView);VB
'Move's the Grid CurrentCell by skipping 2 cells in the right direction (From 4,1 To 4,3)
Me.gridGroupingControl1.TableControl.CurrentCell.InternalMove(GridDirectionType.Right, 2, GridSetCurrentCellOptions.ScrollInView)Samples:
C# - Internal Move
VB - Internal Move