DragAndDrop将一个silverlight Datagrid的selectedItems转换为另一个 [英] DragAndDrop selectedItems of one silverlight Datagrid into another

查看:141
本文介绍了DragAndDrop将一个silverlight Datagrid的selectedItems转换为另一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我使用DataGridDragDropTarget将一个数据网格的行拖动到另一个数据网格,但客户端希望能够从一个数据网格中选择多个行并将其放入另一个。

Currently I am using "DataGridDragDropTarget" to Drag a row from one datagrid to another, but a client want to be able to select multiple rows from one datagrid and drop them into another.

我玩了一下,但意识到DataGridDragDropTarget似乎只能一次拖放单行。

I played around a bit but realized "DataGridDragDropTarget" seems to be able to drag and drop single row at a time only.

是否有任何替代方式DragDrop多个选定的行?

Is there any alternative way to DragDrop multiple selected rows?

推荐答案

将多个行拖动到另一个数据网格时,按Shift键可以实现这一点。但是,任何人都可以建议如何在移动多行时移除Shift键,或者如何在按住CTRL时拖动?

Pressing Shift key while dragging multiple rows to another datagrid really works for this. But can anyone suggest how can I remove shift key press while moving multiple rows or how to drag while holding CTRL?

这篇关于DragAndDrop将一个silverlight Datagrid的selectedItems转换为另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆