Class GridQueryNextCurrentCellPositionEventArgs
Provides data for
the QueryNextCurrentCellPosition event.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridQueryNextCurrentCellPositionEventArgs : SyncfusionHandledEventArgs
Remarks
Used by QueryNextCurrentCellPosition.
QueryNextCurrentCellPosition occurs before the the current cell is moved into a specific direction. Normally, cells that are not marked as enabled with Enabled will be skipped but you can hook into this mechanism by implementing a event handler for this event.
See the SampleGrid class in the grid pad sample for an example.
Constructors
GridQueryNextCurrentCellPositionEventArgs(GridDirectionType, Int32, Int32)
Initializes the new instances for the GridQueryNextCurrentCellPositionEventArgs class.
Declaration
public GridQueryNextCurrentCellPositionEventArgs(GridDirectionType direction, int rowIndex, int colIndex)
Parameters
Type | Name | Description |
---|---|---|
GridDirectionType | direction | The GridDirectionType that specifies the direction of the current cell movement. |
System.Int32 | rowIndex | The row index. |
System.Int32 | colIndex | The column index. |
Properties
ColIndex
Gets or sets the column index.
Declaration
[TraceProperty(true)]
public int ColIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
Direction
Gets or sets the GridDirectionType that specifies the direction of the current cell movement.
Declaration
[TraceProperty(true)]
public GridDirectionType Direction { get; set; }
Property Value
Type |
---|
GridDirectionType |
Result
Gets or sets a value indicating whether if current cell can be moved in a specified direction. The resulting value. Set this to True if current cell can be moved in a specified direction; False if not. Don't forget to also set Handled to True.
Declaration
[TraceProperty(true)]
public bool Result { get; set; }
Property Value
Type |
---|
System.Boolean |
RowIndex
Gets or sets the row index.
Declaration
[TraceProperty(true)]
public int RowIndex { get; set; }
Property Value
Type |
---|
System.Int32 |