Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Collapse]Vertical Grid
   [Expand]Overview
   [Expand]Fundamentals
   [Collapse]Concepts
    [Expand]Layouts
    [Expand]Binding to Data
    [Expand]Rows
    [Expand]Records
    [Expand]Cells
    [Expand]In-place Editors
     Formatting
    [Expand]Appearances
     Hit Information
    [Expand]Custom Painting
    [Expand]Alpha Blending and Background Images
    [Expand]Customization Form
     Batch Modifications
    [Collapse]Drag and Drop
     [Expand]OLE Drag and Drop Overview
      Dragging Rows
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]Examples
   [Expand]End-User Capabilities
   [Expand]Member Tables
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Drag and Drop

Enabling end-users to perform drag and drop operations within or between controls can significantly increase the usability of your application. The vertical grid controls (VGridControl and PropertyGridControl) also support drag and drop. You can allow end-users to perform any drag and drop operations either within a grid control or between the grid and external controls.

The list below enumerates the types of drag and drop operations that can be implemented when using a vertical grid and points to topics that contain detailed information about each type.

  • Automatic row dragging.

    Such drag and drop operations are implemented by the vertical grid and don't require any code to be written. You can be use them to change the position of rows within the control, or to move rows to the Customization Form and back to the control. Please refer to the Using Drag and Drop topic of the end-user Capabilities section for the detailed information on using such operations, including how to disable internal drag and drop.

  • Manual row dragging using the vertical grid control's events.

    This kind of drag and drop operations implies handling the VGridControlBase.StartDragRow, VGridControlBase.ProcessDragRow and VGridControlBase.EndDragRow events. These events fire when a user begins dragging a row, while the row is being dragged and then when it is dropped. These events can therefore be used to customize row dragging within the control or to allow end-users to drag rows to external controls. Detailed information about these events including examples can be found in Dragging Rows.

  • OLE Drag and Drop.

    This type of drag and drop operations is the most flexible. It gives the capability of dragging any data from the vertical grid to other controls and vice versa. Please refer to the OLE Drag and Drop Overview topic for an overview. Examples of using the VGridControl control as the source or target for drag and drop operations can be found in the XtraVerticalGrid as the Source of Drag and Drop and XtraVerticalGrid as the Target of Drag and Drop topics.

How would you rate this topic?​​​​​​​