Class GridSelectionDragEventArgs
Provides data about the cancelable SelectionDragging or SelectionDragged event.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public sealed class GridSelectionDragEventArgs : SyncfusionCancelEventArgs
Remarks
GridSelectionDragEventArgs is a custom event argument class used by the SelectionDragging and SelectionDragged event when the user is about to drag or is in the process of dragging a selected range of columns or rows.
You can disallow the dragging of specific columns or rows at run-time when you assign True to System.ComponentModel.CancelEventArgs.Cancel.
You can also modify the Destination.
Constructors
GridSelectionDragEventArgs(GridRangeInfo, GridRangeInfo, GridDragSelectionReason)
Initializes a new object.
Declaration
public GridSelectionDragEventArgs(GridRangeInfo range, GridRangeInfo destination, GridDragSelectionReason reason)
Parameters
Type | Name | Description |
---|---|---|
GridRangeInfo | range | The range of columns or rows to be dragged. |
GridRangeInfo | destination | The suggested new position of the dragged rows and columns. |
GridDragSelectionReason | reason | The GridDragSelectionReason that describes the current state of the user action. |
Properties
Destination
Gets or sets the suggested new position of the dragged rows and columns.
Declaration
[TraceProperty(true)]
public GridRangeInfo Destination { get; set; }
Property Value
Type |
---|
GridRangeInfo |
Remarks
This value is only set when GridDragSelectionReason is MouseMove or MouseUp.
Range
Gets the range of columns or rows to be dragged.
Declaration
[TraceProperty(true)]
public GridRangeInfo Range { get; }
Property Value
Type |
---|
GridRangeInfo |
Reason
Gets the GridDragSelectionReason that describes the current state of the user action.
Declaration
[TraceProperty(true)]
public GridDragSelectionReason Reason { get; }
Property Value
Type |
---|
GridDragSelectionReason |