ClassGridViewDragDropBehavior
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
GridViewDragDropBehavior()
Initializes a new instance of the GridViewDragDropBehavior class.
Declaration
public GridViewDragDropBehavior()
Methods
CanDrop(GridViewDragDropState)
Returns a value specifying whether the current drag operation can be completed.
Declaration
public override bool CanDrop(GridViewDragDropState state)
Parameters
state
DragDropState that provides context for the current operation.
Returns
True if the drag operation can be completed, otherwise false.
Overrides
Remarks
This method is called only in the context of the drop target control.
CopyDraggedItems(GridViewDragDropState)
Copies the items that are dragged in the operation specified by the provided ListBoxDragDropState.
Declaration
protected override IEnumerable<object> CopyDraggedItems(GridViewDragDropState state)
Parameters
state
Returns
Overrides
Drop(GridViewDragDropState)
Completes the drop operation. This method is called only in the context of the drop target control.
Declaration
public override void Drop(GridViewDragDropState state)
Parameters
state
DragDropState that provides context for the current operation.
Overrides
Remarks
When the drag source and the drop target are the same control, this method is called before DragCompleted.