Dragging to sort - DropTargets and SampleData issues RRS feed

  • Question

  • Hello,

    I've successfully created panels that can be dragged and organized around the screen using PanelDropTarget. However, I was running into 2 problems with DataGrids (DataGridDropTarget) and ListBoxes (ListBoxDropTarget):

    1. Unable to drag and drop a row/listboxitem to a different location in the same datagrid/listbox, i.e. to change the order of the items.

    2. When using sample data, drag and drop does not work at all. It only works if I hard-code the items directly in the XAML. When attempting to drag, the mouse cursor changes to a grayed out up/down, or a red "no way Jose" icon.

    Wednesday, February 9, 2011 3:18 PM

All replies

  • I've been able to set up drag and drop using panels and sample data. Data Grids (DataGridDragDropTarget), however, are still a problem. What am I missing?
    Tuesday, February 15, 2011 5:35 PM