Skip to main content
A newer version of this page is available. .

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

  • 7 minutes to read

This example demonstrates how to enable Drag-and-Drop functionality in the GridControl with a TreeList 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:

DragDropTreeListView

<Application x:Class="How_to_TreeList_Drag_and_Drop.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml">
    <Application.Resources>

    </Application.Resources>
</Application>