I have implemented drag-and-drop from a RadGridView. However, I'm running into a couple of problems that you might be able to help with.
Firstly, I click on any row in the grid to highlight that row. Next, I click in a column header of the same grid to reorder the columns. An event is received in my drag event handler that indicates that the highlighted row is being dragged. In effect, two operations then happen at once, The column header gets dragged, AND my highlighted row gets dragged. The behavior I'm looking for is to NOT drag the highlighted row when the column header is being dragged. I would have hoped that the drag even would not have been generated in this instance. Is there a way to check for this condition in my drag event handler?
The second issue I'm experiencing is when I allow the user to select multiple rows. The user only selects a single row and then drags that row. If they drag that row over any other row in the grid, that row is subsequently selcted as well. The behavior I would prefer is that when a row is being dragged (and multi-row select is enabled), the grid not select other rows because of the drag operation.
I believe that these are counter behaviors to the grid that is built into Silverlight. Of course, I prefer to use RadGridView.
Firstly, I click on any row in the grid to highlight that row. Next, I click in a column header of the same grid to reorder the columns. An event is received in my drag event handler that indicates that the highlighted row is being dragged. In effect, two operations then happen at once, The column header gets dragged, AND my highlighted row gets dragged. The behavior I'm looking for is to NOT drag the highlighted row when the column header is being dragged. I would have hoped that the drag even would not have been generated in this instance. Is there a way to check for this condition in my drag event handler?
The second issue I'm experiencing is when I allow the user to select multiple rows. The user only selects a single row and then drags that row. If they drag that row over any other row in the grid, that row is subsequently selcted as well. The behavior I would prefer is that when a row is being dragged (and multi-row select is enabled), the grid not select other rows because of the drag operation.
I believe that these are counter behaviors to the grid that is built into Silverlight. Of course, I prefer to use RadGridView.