在wpf中拖放数据网格 [英] Drag and drop between data grids in wpf

查看:88
本文介绍了在wpf中拖放数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在wpf做学校时间表。我有2个数据网格。一个网格包含两列(例如:主题名称和计数)。当我将第一个网格主题拖动到第二个网格的一个单元格中时。主题计数将在第一个网格中减少。当我将另一个主题拖动到另一个单元格时,相应的主题计数将减少。

解决方案

请参考以下链接:

拖动和弃用WPF [^]

WPF拖动并放到DataGrid [^]



希望这有帮助。


I am doing school time table in wpf .I have 2 data grids. One grid contains two columns(ex:subject name and count). When i drag the first grid subject into 2nd grid's one cell.The subject count will be decreased in 1st grid.when i drag another subject into another cell respective subject count will be decrease.

解决方案

Please refer below links:
Drag and Drop in WPF[^]
WPF drag and drop to DataGrid[^]

Hope this helps.


这篇关于在wpf中拖放数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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