Skip to main content
All docs
V22.2
  • CRXPF0001 - Legacy drag-and-drop

    Severity: Error

    The analyzer detects that you use obsolete DevExpress.Xpf.Grid.GridDragDropManager, DevExpress.Xpf.Grid.TreeListDragDropManager, or DevExpress.Xpf.Grid.ListBoxDragDropManager behaviors.

    Examples

    Invalid Code

    <dxg:GridControl ...>
        <dxg:GridControl.View>
            <dxg:TableView .../>
        </dxg:GridControl.View>
        <dxmvvm:Interaction.Behaviors>
            <dxg:GridDragDropManager AllowDrag="True" AllowDrop="True"/>
        </dxmvvm:Interaction.Behaviors>
    </dxg:GridControl>
    

    Valid Code

    <dxg:GridControl ...>
        <dxg:GridControl.View>
            <!-- A DevExpress.Xpf.Grid.DataViewBase descendant: -->
            <dxg:TableView AllowDragDrop="True" .../>
        </dxg:GridControl.View>
    </dxg:GridControl>
    

    How to Fix

    Use the DataViewBase.AllowDragDrop property to enable drag-and-drop operations.

    Refer to the following help topic for more information: Drag-and-Drop.