i have this problem: https://www.screencast.com/t/dbTeCtJDM
i need it to not think the row moved if it didn't actually move.
my code:
Public Class GridRowDragDropControllerNoPopup
Inherits GridRowDragDropController
Dim rowStartIndex As Integer
Dim rowStartData As Object
Public Sub New()
MyBase.New()
End Sub
Protected Overrides Sub ShowDragDropPopup(dropPosition As DropPosition, draggingRecords As ObservableCollection(Of Object), args As DragEventArgs)
args.Handled = True
End Sub
Protected Overrides Sub ProcessOnDragStarting(args As MouseEventArgs, rowColumnIndex As RowColumnIndex)
MyBase.ProcessOnDragStarting(args, rowColumnIndex)
CloseDraggablePopUp()
'CloseDragIndicators() ' uncomment this to get rid of indicator arrows
args.Handled = True
rowStartIndex = rowColumnIndex.RowIndex
rowStartData = args.Source
End Sub
Protected Overrides Sub ProcessOnDragOver(args As DragEventArgs, rowColumnIndex As RowColumnIndex)
MyBase.ProcessOnDragOver(args, rowColumnIndex)
CloseDraggablePopUp()
'CloseDragIndicators() ' uncomment this to get rid of indicator arrows
args.Handled = True
End Sub
Protected Overrides Sub ProcessOnDrop(args As DragEventArgs, rowColumnIndex As RowColumnIndex)
MyBase.ProcessOnDrop(args, rowColumnIndex)
If args.Source.Equals(rowStartData) Then
Debug.Write("didn't move")
End If
args.Handled = True
'args.Data.GetDataPresent()
End Sub
End Class