Provides drag and drop capabilities for RadGridView.
Definition
Namespace:Telerik.Windows.DragDrop.Behaviors
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public class GridViewDragDropBehavior : DragDropBehavior<GridViewDragDropState>, IDragDropBehavior<GridViewDragDropState>
Inheritance: objectDragDropBehavior<GridViewDragDropState>GridViewDragDropBehavior
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridViewDragDropBehavior class.
public GridViewDragDropBehavior()
Methods
Returns a value specifying whether the current drag operation can be completed.
public override bool CanDrop(GridViewDragDropState state)
DragDropState that provides context for the current operation.
Returns:True if the drag operation can be completed, otherwise false.
Overrides:
This method is called only in the context of the drop target control.
Copies the items that are dragged in the operation specified by the provided ListBoxDragDropState.
protected override IEnumerable<object> CopyDraggedItems(GridViewDragDropState state)
Overrides:
Completes the drop operation. This method is called only in the context of the drop target control.
public override void Drop(GridViewDragDropState state)
DragDropState that provides context for the current operation.
Overrides:
When the drag source and the drop target are the same control, this method is called before DragCompleted.