Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
Drag Drop in xamdatagrid child rows with MVVM no code in code-behind
posted
I have a XamDatagrid with a parent and a child layout. I want the a row's child rows(one or many) to be dragged and dropped to another row's child layout. I want to do this with absolute no code in code-behind strictly conforming to MVVM standards. It would be of great help if you could let me know on any in-built support or the best way to achieve this may be with some kind of sample.
  • 34510
    Suggested Answer
    Offline posted

    Hi Gowri,

    You should take a look at the following forum thread for something very similar to this:
    http://es.infragistics.com/community/forums/t/68674.aspx

    The only real difference is that the sample on that forum does not use MVVM so everything is done in code behind.  All you have to do, though, is take that code and place it into a Behavior<T> and you can keep MVVM.  I attached an updated sample that puts everything into a behavior.

    DragDropRecordsInHierarchy.zip