Class
GridViewDragDropBehavior

Provides drag and drop capabilities for RadGridView.

Definition

Namespace:Telerik.Windows.DragDrop.Behaviors

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

cs-api-definition
public class GridViewDragDropBehavior : DragDropBehavior<GridViewDragDropState>, IDragDropBehavior<GridViewDragDropState>

Inheritance: objectDragDropBehavior<GridViewDragDropState>GridViewDragDropBehavior

Implements: IDragDropBehavior<GridViewDragDropState>

Inherited Members DragDropBehavior<GridViewDragDropState>.ItemTypePropertyDragDropBehavior<GridViewDragDropState>.GetDragDropEffects(GridViewDragDropState)DragDropBehavior<GridViewDragDropState>.CanStartDrag(GridViewDragDropState)DragDropBehavior<GridViewDragDropState>.DragDropCanceled(GridViewDragDropState)DragDropBehavior<GridViewDragDropState>.DragDropCompleted(GridViewDragDropState)DragDropBehavior<GridViewDragDropState>.CoerceDraggedItems(GridViewDragDropState)DragDropBehavior<GridViewDragDropState>.RemoveItems(IList, IEnumerable)DragDropBehavior<GridViewDragDropState>.InsertItems(IList, int, IEnumerable)DragDropBehavior<GridViewDragDropState>.IsMovingItems(GridViewDragDropState)DragDropBehavior<GridViewDragDropState>.ItemTypeDragDropBehavior<GridViewDragDropState>.AllowReorder

Constructors

GridViewDragDropBehavior()

Initializes a new instance of the GridViewDragDropBehavior class.

Declaration

cs-api-definition
public GridViewDragDropBehavior()

Methods

CanDrop(GridViewDragDropState)

Returns a value specifying whether the current drag operation can be completed.

Declaration

cs-api-definition
public override bool CanDrop(GridViewDragDropState state)

Parameters

state

GridViewDragDropState

DragDropState that provides context for the current operation.

Returns

bool

True if the drag operation can be completed, otherwise false.

Overrides DragDropBehavior<GridViewDragDropState>.CanDrop(GridViewDragDropState)

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

cs-api-definition
protected override IEnumerable<object> CopyDraggedItems(GridViewDragDropState state)

Parameters

state

GridViewDragDropState

Returns

IEnumerable<object>

Overrides DragDropBehavior<GridViewDragDropState>.CopyDraggedItems(GridViewDragDropState)

Drop(GridViewDragDropState)

Completes the drop operation. This method is called only in the context of the drop target control.

Declaration

cs-api-definition
public override void Drop(GridViewDragDropState state)

Parameters

state

GridViewDragDropState

DragDropState that provides context for the current operation.

Overrides DragDropBehavior<GridViewDragDropState>.Drop(GridViewDragDropState)

Remarks

When the drag source and the drop target are the same control, this method is called before DragCompleted.