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
560
Drag Drop a file into XamDataGrid?
posted

Hi,

Does XamDataGrid support drag-dropping a  file to load into the grid? Can you please show the steps / code/ XAML to achieve the same?

Thanks,

Joe

  • 69686
    Suggested Answer
    posted

    Hello Joe,

    Drag-Drop functionality in WPF is left for the developer to implement. The controls do expose some events that you can use - DoDragDrop, DragEnter, DragDrop, etc. You can see a simple implementation of drag-drop here. In the blog post, you can find a helpful link to another blog post, explaining this in depth.

    Hope this helps.