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
120
Drag and Drop of Records
posted

I want to implement Drag and Drop within same xamGrid on Records.

 Basically i want to rearrage the records.

 how to do that ? pls suggest.

 

Thanks,

Jigar

Parents
  • 8576
    Offline posted
    Hi Jigar -
     
    The XamDataGrid does not contain any special support for drag and drop - as a general WPF topic you might find this article helpful for implementing drag and and drop in WPF controls.  http://pavanpodila.spaces.live.com/blog/cns!9C9E888164859398!199.entry
     
    As for re-arranging the records in the XamDataGrid once a record has been 'dropped' on a target location, all you have to do is manipulate the data source that the XamDataGrid is bound to and remove the record from it's current location and insert it in it's new location.  The XamDataGrid listens to these kinds of data source changes (assuming your data source is firing them properly) and refreshes its display to reflect the changes.
     
    Joe
     
Reply Children
No Data