[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Collapse]Data Grid
   [Expand]Getting Started
   [Expand]Implementation Details
   [Expand]Views
   [Expand]Grid View Data Layout
   [Expand]Binding to Data
   [Expand]Master-Detail Data Representation
   [Expand]Data Editing and Validation
   [Expand]Grouping
   [Expand]Selection
   [Expand]Filtering and Searching
   [Expand]Sorting
   [Expand]Data Summaries
   [Expand]Paging and Scrolling
   [Expand]Focus and Navigation
   [Expand]Conditional Formatting
   [Collapse]Drag-and-Drop
     Drag-and-Drop Options
     Drag-and-Drop Within GridControl
     Drag-and-Drop Between GridControl and ListBoxEdit
     Drag-and-Drop Between GridControls
     Drag-and-Drop Between GridControl and Other Controls
     Drag-and-Drop Between Applications
     Drag-and-Drop Hint
     Drop Marker
     Drag-and-Drop Managers
     Examples
   [Expand]Appearance Customization
   [Expand]MVVM Enhancements
   [Expand]Printing and Exporting
   [Expand]End-User Interaction
   [Expand]Miscellaneous
   [Expand]Performance Improvement
   [Expand]Design-Time Features
   [Expand]Visual Elements
   [Expand]End-User Capabilities
   [Expand]Examples
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Drag-and-Drop Hint

The GridControl shows a drag-and-drop hint when dragging records. This hint is a visual element that provides information on the record's source.

The images below show drag-and-drop operations: the first one shows a hint, and in the second one it is hidden. You can set the DataViewBase.ShowDragDropHint property to show/hide the hint.

This topic contains the following sections:

Expanded Drag-and-Drop Hint Customization

You can customize the drag-and-drop hint's appearance. The images below show default and custom hints:

Specify the DataViewBase.DragDropHintTemplate property to customize the hint's appearance. The binding source (DataContext of the template elements) for this template is the DragDropHintData class.

The following code sample demonstrates how to show dragged records' names in the drag-and-drop hint using the ListBoxEdit control:

Expanded Adding Drop Target Information to the Drag-and-Drop Hint

The drag-and-drop hint contains information about a drag source only by default. You can add additional information, for example, in the following image, a drag-and-drop hint shows information about an action that takes place and a drop target source:

Set the DataViewBase.ShowTargetInfoInDragDropHint property to true to show a drag-and-drop hint like in the image above:

Is this topic helpful?​​​​​​​