This is a migrated thread and some comments may be shown as answers.

Associating items in two collections/grids

1 Answer 14 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 12 Jan 2012, 02:24 AM
I have two different collections with items of type A and B where B contains a child collection of type A and I'm displaying these two collections in two different RadGridViews and what I want to do is to be able to drag an item from one grid to the other so that I can add the appropriate item to the child collection (thus building a relationship between the two collections). I'm fairly new with WPF and just can't seem to see how to modify the examples to accomplish this DnD scenario. I'm guessing that I have to call the appropriate RadDragAndDropManager static methods for each row of the grid but as my grids are bound to my collection (via a View Model) I'm not sure how to do this or if it's the correct approach.

Any help/pointers would be greatly appreciated!

-Gary

1 Answer, 1 is accepted

Sort by
0
Gary
Top achievements
Rank 1
answered on 12 Jan 2012, 04:30 AM
Nevermind - I figured it out - ended up just catching the RowLoaded event and wiring it up there.
Tags
DragAndDrop
Asked by
Gary
Top achievements
Rank 1
Answers by
Gary
Top achievements
Rank 1
Share this question
or