menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridOleDropTarget - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridOleDropTarget

    Implements the DropTarget part for OLE drag-and-drop operations. You can add support for additional data formats by creating a class that implements IGridDataObjectConsumer and register an instance of this with RegisterDataObjectConsumer(IGridDataObjectConsumer).

    Inheritance
    System.Object
    NonFinalizeDisposable
    GridSubComponent
    GridOleDropTarget
    Implements
    System.IDisposable
    IGridOleDragDropEventsTarget
    Inherited Members
    GridSubComponent.Grid
    NonFinalizeDisposable.Dispose()
    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.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public class GridOleDropTarget : GridSubComponent, IDisposable, IGridOleDragDropEventsTarget

    Constructors

    GridOleDropTarget(GridControlBase)

    Initializes a new instance for theGridOleDropTarget class.

    Declaration
    public GridOleDropTarget(GridControlBase grid)
    Parameters
    Type Name Description
    GridControlBase grid

    The grid control.

    Methods

    Dispose(Boolean)

    Releases all resources used by the System.ComponentModel.Component.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    Overrides
    NonFinalizeDisposable.Dispose(Boolean)
    Remarks

    See the documentation for the System.ComponentModel.Component class and its Dispose member.

    EnableEdgeScrolling(ScrollBars)

    Enable the edge scrolling.

    Declaration
    protected void EnableEdgeScrolling(ScrollBars sb)
    Parameters
    Type Name Description
    System.Windows.Forms.ScrollBars sb

    Specifies which scrollbar will be visible in control.

    GridBeforeScrolling(Object, GridRowColIndexChangingEventArgs)

    This event is fired when scrolling started.

    Declaration
    protected virtual void GridBeforeScrolling(object sender, GridRowColIndexChangingEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    The source control.

    GridRowColIndexChangingEventArgs e

    The GridRowColIndexChangingEventArgsthat contains event data.

    OnDragDrop(DragEventArgs)

    Occurs when a drag-drop operation is completed.

    Declaration
    public virtual void OnDragDrop(DragEventArgs drgevent)
    Parameters
    Type Name Description
    System.Windows.Forms.DragEventArgs drgevent

    A System.Windows.Forms.Grid.DragEventArgs holding the event data.

    OnDragEnter(DragEventArgs)

    Occurs when an object is dragged into the control's bounds.

    Declaration
    public virtual void OnDragEnter(DragEventArgs drgevent)
    Parameters
    Type Name Description
    System.Windows.Forms.DragEventArgs drgevent

    A System.Windows.Forms.DragEventArgs holding the event data.

    OnDragLeave(EventArgs)

    Occurs when an object is dragged out of the control's bounds.

    Declaration
    public virtual void OnDragLeave(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    The System.EventArgsthat contains event data.

    OnDragOver(DragEventArgs)

    Occurs when an object is dragged over the control's bounds.

    Declaration
    public virtual void OnDragOver(DragEventArgs drgevent)
    Parameters
    Type Name Description
    System.Windows.Forms.DragEventArgs drgevent

    The System.Windows.Forms.DragEventArgsthat contains event data.

    OutlineDropTargetRange(Point, Boolean, Boolean)

    Draw the outline on target location.

    Declaration
    protected virtual void OutlineDropTargetRange(Point point, bool bEraseOld, bool bDrawNew)
    Parameters
    Type Name Description
    System.Drawing.Point point

    the destination point.

    System.Boolean bEraseOld

    The Boolean value.

    System.Boolean bDrawNew

    The Boolean value.

    Register(Int32)

    Sets grid.Model.Options.DragDropDropTargetFlags

    Declaration
    public void Register(int flags)
    Parameters
    Type Name Description
    System.Int32 flags

    Value for DragDropDropTargetFlags.

    RegisterConsumer(IGridDataObjectConsumer)

    Adds a IGridDataObjectConsumer.

    Declaration
    public void RegisterConsumer(IGridDataObjectConsumer consumer)
    Parameters
    Type Name Description
    IGridDataObjectConsumer consumer

    A IGridDataObjectConsumer object.

    UnregisterConsumer(IGridDataObjectConsumer)

    Removes a IGridDataObjectConsumer.

    Declaration
    public void UnregisterConsumer(IGridDataObjectConsumer consumer)
    Parameters
    Type Name Description
    IGridDataObjectConsumer consumer

    A IGridDataObjectConsumer object.

    Implements

    System.IDisposable
    IGridOleDragDropEventsTarget
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved