Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
xamDataGrid DragAndDrop
posted

I'm looking for a way to drag-and-drop a row from a xamDataGrid to another component (i.e. treeView)

It seems like PreviewDragLeave, DragDrop.DrageLeave, DragLeave events are not really fired.

I've tried also using the MouseMove event:

 

void myGrid_MouseMove(object sender,MouseEventArgs e) 
{
    if(!_isDragging && e.LeftButton == MouseButtonState.Pressed)
    {
        _isDragging = true;
        var row = myGrid....;
        DragDrop.DoDragDrop(myGrid,treeView.row,DragDropEffects.Move);
    }
}
to no avail. Any ideas ?