Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CompleteRecordDragDropEventArgs.Effects Property

Gets or sets the target drag-and-drop operation.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public DragDropEffects Effects { get; set; }

#Property Value

Type Description
DragDropEffects

A member of the DragDropEffects enumeration specifying the target drag-and-drop operation.

#Remarks

You can use DragDropEffects to display different mouse pointers for drag-and-drop operations.

The code sample below shows how to display an arrow symbol for moving nodes to another node’s child collection:

<dxg:GridControl>
   <!----> 
   <dxg:GridControl.View>
      <dxg:TreeListView AllowDragDrop="True" DragRecordOver="OnDragRecordOver" />
   </dxg:GridControl.View>
</dxg:GridControl>
void OnDragRecordOver(object sender, DragRecordOverEventArgs e) {
   if (e.DropPosition == DropPosition.Inside) {
      e.Effects = DragDropEffects.Link;
      e.Handled = true;
   }
}
See Also