Syncfusion.Grid.Windows


Syncfusion.Windows.Forms.Grid Namespace > GridControlBase Class : QueryNextCurrentCellPosition Event

QueryNextCurrentCellPosition Event

Occurs before the the current cell is moved into a specific direction. Normally, cells that are not marked as enabled with GridStyleInfo.Enabled will be skipped but you can hook into this mechanism by implementing an event handler for QueryNextCurrentCellPosition. You should set Syncfusion.ComponentModel.SyncfusionHandledEventArgs.Handled to True if you handled this event.
Syntax
'Declaration
 
<CategoryAttribute("Grid")>
<DescriptionAttribute("Occurs before the the current cell is moved into a specific direction.")>
Public Event QueryNextCurrentCellPosition As GridQueryNextCurrentCellPositionEventHandler
'Usage
 
Dim instance As GridControlBase
Dim handler As GridQueryNextCurrentCellPositionEventHandler
 
AddHandler instance.QueryNextCurrentCellPosition, handler
[Category("Grid")]
[Description("Occurs before the the current cell is moved into a specific direction.")]
public event GridQueryNextCurrentCellPositionEventHandler QueryNextCurrentCellPosition
Event Data

The event handler receives an argument of type GridQueryNextCurrentCellPositionEventArgs containing data related to this event. The following GridQueryNextCurrentCellPositionEventArgs properties provide information specific to this event.

PropertyDescription
Gets or sets the column index.  
Gets or sets the GridDirectionType that specifies the direction of the current cell movement.  
Indicates whether the event has been handled and no further processing of the event should happen. (Inherited from Syncfusion.ComponentModel.SyncfusionHandledEventArgs)
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.  
Gets or sets the row index.  
Remarks
See the SampleGrid class in the grid pad sample for an example.
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.14

See Also