如何在wpf中将datagrid的一个表单数据传递给另一个表单datagrid? [英] How to pass data of datagrid one form to another form datagrid in wpf ?
本文介绍了如何在wpf中将datagrid的一个表单数据传递给另一个表单datagrid?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要将datagrid数据传递到另一个数据网格上吗?
me need pass datagrid data to another datagrid which on other form?
推荐答案
我认为mediator
模式更适合并有助于解决您的问题。
或者您也可以在中实现类似
app(publication \subscription model)。例如:定义您自己的消息类型并对其执行各种转换(订阅,连接等)。messsage bus
的内容WPF
有关详细信息,请询问我。
Hi, i thinkmediator
pattern is more suitable and helpfull for resolving your problem.
Or you can also implement something likemesssage bus
in yourWPF
app (publication\subscription model). For example: define your own message type and perform various transformation against it(subscripe, wire up, etc).
For more details, please ask me.
这篇关于如何在wpf中将datagrid的一个表单数据传递给另一个表单datagrid?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文