Class GridRowDragOverEventArgs
Provides data for the event raised while a row is dragged over a valid drop target.
Inheritance
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.Events
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class GridRowDragOverEventArgs : EventArgs
Constructors
GridRowDragOverEventArgs(Object, DropPosition, Object, Boolean)
Initializes a new instance of the GridRowDragOverEventArgs class.
Declaration
public GridRowDragOverEventArgs(object data, DropPosition dropPosition, object targetRecord, bool isFromOutsideSource)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | data | The data being dragged. |
| DropPosition | dropPosition | The intended drop position relative to the target record. |
| System.Object | targetRecord | The record currently being hovered over. |
| System.Boolean | isFromOutsideSource | Indicates whether the drag originated from an external source. |
Properties
Data
Gets the data associated with the drag operation.
Declaration
public object Data { get; }
Property Value
| Type |
|---|
| System.Object |
DropPosition
Gets or sets the position relative to the target record where the drop is intended.
Declaration
public DropPosition DropPosition { get; }
Property Value
| Type |
|---|
| DropPosition |
Handled
Gets or sets a value indicating whether the event has been handled. Set this property to true to suppress the default drag-over behavior.
Declaration
public bool Handled { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
IsFromOutsideSource
Gets a value indicating whether the drag source is external to the grid.
Declaration
public bool IsFromOutsideSource { get; }
Property Value
| Type |
|---|
| System.Boolean |
ShowDragUI
Gets or sets a value indicating whether the drag UI should be displayed.
Declaration
public bool ShowDragUI { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
TargetRecord
Gets the record over which the dragged item is currently hovering.
Declaration
public object TargetRecord { get; }
Property Value
| Type |
|---|
| System.Object |