I'm wondering how is the best way to make it possible to drag a row before another in a xamdatagrid.
I was looking for samples using DragDropManager, but I don't know where to put the DragSource so that the entire row dragged.
Hello,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post and I created a sample project for you with the functionlaity you want.
Feel free to write me if you have further questions.
Hi Elena Ganeva,
Can you provide a sample with Xam data grid in two different Windows.
I am trying to follow this Example and wanted to do Drag Drop on Two different XAM Data Grids.
Hello Elena,
Do you have any idea for my remaining problems? I am also not able to hide any of my fields although I've set the Visibility="Collapsed" it is still visible.
Thanks!Mirko
I still have almost the same problems using your sample project:1. FieldChooserButton is shown but not working, the FieldChooser is not opening2. AllowFieldMoving ist still not working3. I am now able to select a row with the "arrow" on the left of every record. This problem is solved.4. The drag object is still not left-aligned. Do you have an idea how to do that?
One new big problem appeard with your new sample files:5. I need to set AllowEdit="False". Doing that, the drag&drop funcionality is not working anymore
Thanks for your help!
Hello Gawain,
Please take a look at the new attached sample. In it I just copy the default style for the DataRecordPresenter and add the drag and drop logic inside its CardPanel. This way I don’t modify the original functionality at all and all of the default functionality is preserved. Please have in mind that the default templates for the control may have some slight differences for the different versions so make sure that you copy the default style for the exact same version: for example 11.2 styles are located at
C:\Program Files (x86)\Infragistics\NetAdvantage 2011.2\WPF\DefaultStyles\DataPresenter\ DataPresenterGeneric_Express.xaml
Please let me know if you have any additional questions with this matter.