Class GridRowDroppedEventArgs
Provides data for the event raised after a drop operation has been completed.
Inheritance
System.Object
System.EventArgs
GridRowDroppedEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.WinForms.DataGrid.Events
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class GridRowDroppedEventArgs : EventArgs
Constructors
GridRowDroppedEventArgs(Object, ObservableCollection<Object>, DropPosition, Object, Boolean)
Initializes a new instance of the GridRowDroppedEventArgs class.
Declaration
public GridRowDroppedEventArgs(object data, ObservableCollection<object> draggingRecords, DropPosition dropPosition, object targetRecord, bool isFromOutsideSource)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | data | The drag payload or data object. |
| System.Collections.ObjectModel.ObservableCollection<System.Object> | draggingRecords | The records that were dropped. |
| DropPosition | dropPosition | The final drop position. |
| System.Object | targetRecord | The record that was the target of the drop. |
| System.Boolean | isFromOutsideSource | True if the drag originated outside the grid; otherwise, false. |
Properties
Data
Gets the data object associated with the drop operation.
Declaration
public object Data { get; }
Property Value
| Type |
|---|
| System.Object |
DraggingRecords
Gets the collection of records that were dropped.
Declaration
public IReadOnlyList<object> DraggingRecords { get; }
Property Value
| Type |
|---|
| System.Collections.Generic.IReadOnlyList<System.Object> |
DropPosition
Gets the drop position relative to the target record.
Declaration
public DropPosition DropPosition { get; }
Property Value
| Type |
|---|
| DropPosition |
IsFromOutsideSource
Gets a value indicating whether the drag originated outside the grid.
Declaration
public bool IsFromOutsideSource { get; }
Property Value
| Type |
|---|
| System.Boolean |
TargetRecord
Gets the record that was the target of the drop.
Declaration
public object TargetRecord { get; }
Property Value
| Type |
|---|
| System.Object |