New to Telerik UI for WinFormsStart a free 30-day trial

Represents the drag and drop behavior in the grid

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public abstract class GridDragDropBehavior : IGridDragDropBehavior

Inheritance: objectGridDragDropBehavior

Derived Classes: GridColumnDragDropBehvaviorGridRowDragDropBehavior

Implements: IGridDragDropBehavior

Constructors

Initializes a new instance of the GridDragDropBehavior class.

C#
protected GridDragDropBehavior()

Properties

Gets the drag hint.

C#
public abstract RadImageShape DragHint { get; }
Property Value:

The drag hint.

Implements: IGridDragDropBehavior.DragHint

Gets the grid view element.

C#
public RadGridViewElement GridViewElement { get; }
Property Value:

The grid view element.

Implements: IGridDragDropBehavior.GridViewElement

Methods

Gets the drag hint location.

C#
public abstract Point GetDragHintLocation(ISupportDrop dropTarget, Point mousePosition)
Parameters:dropTargetISupportDrop

The drop target.

mousePositionPoint

The mouse position.

Returns:

Point

Implements: IGridDragDropBehavior.GetDragHintLocation(ISupportDrop, Point)

Gets the size of the drag hint.

C#
public abstract Size GetDragHintSize(ISupportDrop dropTarget)
Parameters:dropTargetISupportDrop

The drop target.

Returns:

Size

Implements: IGridDragDropBehavior.GetDragHintSize(ISupportDrop)

Initializes the specified grid view element.

C#
public virtual void Initialize(RadGridViewElement gridViewElement)
Parameters:gridViewElementRadGridViewElement

The grid view element.

Implements: IGridDragDropBehavior.Initialize(RadGridViewElement)

Updates the drop context.

C#
public virtual void UpdateDropContext(ISupportDrag draggedContext, ISupportDrop dropTarget, Point? location)
Parameters:draggedContextISupportDrag

The dragged context.

dropTargetISupportDrop

The drop target.

locationPoint?

The location.

Implements: IGridDragDropBehavior.UpdateDropContext(ISupportDrag, ISupportDrop, Point?)