Xceed Grid for WinForms v4.3 Documentation
MoveCurrentCell Method


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > GridControl Class : MoveCurrentCell Method
A HorizontalDirection value representing the direction in which to move the current cell.
Moves the CurrentCell in the specified horizontal direction.
Syntax
'Declaration
 
Public Sub MoveCurrentCell( _
   ByVal horizontalDirection As HorizontalDirection _
) 
'Usage
 
Dim instance As GridControl
Dim horizontalDirection As HorizontalDirection
 
instance.MoveCurrentCell(horizontalDirection)
public void MoveCurrentCell( 
   HorizontalDirection horizontalDirection
)

Parameters

horizontalDirection
A HorizontalDirection value representing the direction in which to move the current cell.
Remarks

When moving the current cell, if the destination cell's CanBeCurrent property is false, the next available cell which can be current will become the current cell. If no other cells are available, the current cell will not change.

Moving the current cell outside of the visible area of the grid does not cause the grid to scroll. To bring the new current cell into view, the GridElement.BringIntoView method can be used.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GridControl Class
GridControl Members