Associating items in two collections/grids

2 posts, 0 answers
  1. Gary
    Gary avatar
    7 posts
    Member since:
    Sep 2010

    Posted 11 Jan 2012 Link to this post

    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
  2. Gary
    Gary avatar
    7 posts
    Member since:
    Sep 2010

    Posted 11 Jan 2012 Link to this post

    Nevermind - I figured it out - ended up just catching the RowLoaded event and wiring it up there.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top