Class GridTableSelectCellsMouseController
Implements the cell selection behavior of a grid control.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid.Grouping
Assembly: Syncfusion.Grid.Grouping.Windows.dll
Syntax
public class GridTableSelectCellsMouseController : GridSelectCellsMouseController, IDisposable, IMouseController, IGridFocusHelper
Constructors
GridTableSelectCellsMouseController(GridTableControl)
Initializes a new instance of the GridTableSelectCellsMouseController class with the specified instance of the GridTableControl class.
Declaration
public GridTableSelectCellsMouseController(GridTableControl grid)
Parameters
Type | Name | Description |
---|---|---|
GridTableControl | grid | An instance of the GridTableControl class. |
Methods
GridCurrentCellExternalMove(GridDirectionType, Int32, Boolean)
Overrides and determines whether the current grid cell can move externally or not.
Declaration
protected override bool GridCurrentCellExternalMove(GridDirectionType direction, int num, bool extendSelection)
Parameters
Type | Name | Description |
---|---|---|
GridDirectionType | direction | The direction to be moved. |
System.Int32 | num | The no. of cells to be moved. |
System.Boolean | extendSelection | If True the selection is extended. Otherwise False. |
Returns
Type |
---|
System.Boolean |
Overrides
HitTest(MouseEventArgs, IMouseController)
Overrides and HitTest is called to determine whether your controller wants to handle the mouse events based current context. Used internally.
Declaration
public override int HitTest(MouseEventArgs e, IMouseController controller)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | The System.Windows.Forms.MouseEventArgs contains the event data. |
IMouseController | controller | An instance of the IMouseController interface for mouse controllers to be used with MouseControllerDispatcher. |
Returns
Type | Description |
---|---|
System.Int32 | returns HitTest value |
Overrides
ProcessSetCurrentCell(Int32, Int32, GridSetCurrentCellOptions)
Overrides and process the ProcessSetCurrentCell(Int32, Int32, GridSetCurrentCellOptions) method.
Declaration
protected override void ProcessSetCurrentCell(int rowIndex, int colIndex, GridSetCurrentCellOptions flags)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The row index of the current cell. |
System.Int32 | colIndex | The column index of the current cell. |
GridSetCurrentCellOptions | flags | The enum value for specifying the setting the current cell. |