Skip to main content

DataViewBase.DragDropHintTemplate Property

Gets or sets the template that defines the drag-and-drop hint‘s presentation. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v22.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core


public DataTemplate DragDropHintTemplate { get; set; }

Property Value

Type Description

A System.Windows.DataTemplate object that defines the drag-and-drop hint’s presentation.


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


Specify the 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:

<dxg:TableView AllowDragDrop="True">
         <dxe:ListBoxEdit ItemsSource="{Binding Records}" />
See Also