How to: Enable Drag-and-Drop in the CardView

  • 5 minutes to read

This example demonstrates how to enable Drag-and-Drop functionality in the GridControl with a Card View. The DataViewBase.AllowDragDrop property is set to true.

NOTE

The GridControl ships with native drag-and-drop support starting from version 17.2. Use Drag-and-Drop Managers to enable drag-and-drop functionality in the previous versions.

The image below shows the result:

DragDropCardView

View Example

using System.Windows;

namespace CardViewDragDrop {
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window {
        public MainWindow() {
            InitializeComponent();
        }
    }
}