Hi! I'm trying to add functionality to a XamGrid to reorder the rows by dragging one and inserting it above or below another row when releasing the mouse button. Are there any examples of how to accomplish this? I did some searching and couldn't find anything too substantial on doing this with rows (plenty on columns).
Hello Eric,
Similar question was discussed on the following forum thread:
https://es.infragistics.com/community/forums/f/ultimate-ui-for-wpf/94002/simple-drag-and-drop-beahvior-on-wpf-xamgrid
You can download and test Andrew's sample applicaiton(XamGridDragDropCase.zip).
Let me know if you have any questions.
Sincerely,ZhivkoAssociate Software Developer
Thanks for the response! I've got the example up and running, but it only shows how to drag rows from a grid to a DragDropManager.DropTarget.
Is there a way to make each row a drop target so I can grab the index of where it's being dropped, perform an insert into the grid at that index, and then delete the dragged row? Or would I need to make a column that has a drop target inside of it?