Click or drag to resize
GridControlMoveCurrentCell Method (DirectionType, Int32)
Selects a new current cell based on an offset from the existing current cell.

Namespace: Stingray.Grid
Assembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax
public bool MoveCurrentCell(
	DirectionType direction,
	int nCell
)

Parameters

direction
Type: Stingray.GridDirectionType
One of:
Up
Move up one cell.
Left
Move left one cell.
Down
Move down one cell.
Right
Move right one cell.
PgDown
Move down one page.
PgUp
Move up one page.
Top
Move to the first row.
Bottom
Move to the last row.
MostLeft
Move to the first column.
MostRight
Move to the last column.
TopLeft
Move to the first row and column.
BottomRight
Move to the last row and column.
nCell
Type: SystemInt32
Number of rows or columns.

Return Value

Type: Boolean
true if the operation is successful, false otherwise.
Remarks
Equivalent to MoveCurrentCell(direction, nCell, true).
See Also