Syncfusion.Grid.Windows


Syncfusion.Windows.Forms.Grid Namespace > GridControlBase Class : GetNextCurrentCellPosition Method
The GridDirectionType that specifies the direction of the current cell movement.
The row index.
The column index.

GetNextCurrentCellPosition Method

Determines the next position for the current cell for a given direction. Normally, cells that are not marked as enabled with Enabled will be skipped but you can hook into this mechanism by implementing an event handler for QueryNextCurrentCellPosition.
Syntax
'Declaration
 
Public Function GetNextCurrentCellPosition( _
   ByVal direction As GridDirectionType, _
   ByRef rowIndex As Integer, _
   ByRef colIndex As Integer _
) As Boolean
'Usage
 
Dim instance As GridControlBase
Dim direction As GridDirectionType
Dim rowIndex As Integer
Dim colIndex As Integer
Dim value As Boolean
 
value = instance.GetNextCurrentCellPosition(direction, rowIndex, colIndex)
public bool GetNextCurrentCellPosition( 
   GridDirectionType direction,
   ref int rowIndex,
   ref int colIndex
)

Parameters

direction
The GridDirectionType that specifies the direction of the current cell movement.
rowIndex
The row index.
colIndex
The column index.

Return Value

True if an enabled cell was found; False otherwise.
Remarks
This method will raise the QueryNextCurrentCellPosition event. In your event handler, you can call GridCurrentCell.QueryNextEnabledCell from your QueryNextMoveCell event handler to find out about the next enabled cell and then decide on further criteria if the suggested cell is good.

See the SampleGrid class in the grid pad sample for an example.

AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.14

See Also