Hi,
Is it possible to drag a row from xamdatagrid and drop it on any other control in WPF ?
Thanks,
Harshada
Hello Houman,
I have been looking into this for you and there is no buil-in drag/drop implemented yet.
This behaviour is almost expected since the grid uses the LeftMouseButtonDown for numerous actions and thus the event is mostly handled internally. What you can do is use the Preview events (PreviewMouseLeftButtonUp / PreviewMouseLeftButtonDown) in order to handle the event before the grid does.
Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Hi Alex,
I came across this example of yours and it works great.This post is quite a bit old now, i was wondering, if XamDataGrid 10.1 supports now the drag and drop natively or not?
The problem we are having is that you are using the right mouse button to do the drag and drop, it works neat, but the moment you switch it to left mouse button it doesnt work anymore. How could I use the left mouse button instead?
Many Thanks,Houman
Hello Harshada,
You can see an example of how to drag-drop items from XamDataGrid to another here. Probably you can implement your own way for other wpf controls.
Alex
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4
Hi Harshada,
There is NO support for drag & drop in the XamDataGrid, but you can probably build something on your own. A very good place to start is the following article for ListView drag&drop:
http://www.codeproject.com/KB/WPF/ListViewDragDropManager.aspx .
There is another post similar to your case for UltraGrid: http://forums.infragistics.com/forums/p/19121/69259.aspx
Best Regards,
Dimi
Infragistics Inc.