| GridControlMoveCurrentCell Method (DirectionType, Int32, Boolean) |
Selects a new current cell based on an offset from the existing
current cell.
Namespace: Stingray.GridAssembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax public virtual bool MoveCurrentCell(
DirectionType direction,
int nCell,
bool canSelectRange
)
Public Overridable Function MoveCurrentCell (
direction As DirectionType,
nCell As Integer,
canSelectRange As Boolean
) As Boolean
public:
virtual bool MoveCurrentCell(
DirectionType direction,
int nCell,
bool canSelectRange
)
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. - canSelectRange
- Type: SystemBoolean
Specifies if the current cell
shall be marked as selected range. If false,
the current cell will not be marked as selected range. This
parameter has no effect if the
ExcelLikeCurrentCell
property of this GridControl's
Param has not been set to true.
Return Value
Type:
Booleantrue if the operation is successful,
false otherwise.
See Also