如何将节点从树视图拖放到Datagrid [英] How to Drag and Drop node from treeview to Datagrid

查看:74
本文介绍了如何将节点从树视图拖放到Datagrid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以帮助我如何使用c#

解决方案

将节点从treeview拖放到Datagrid所以我认为你要做的是代表显示的数据datagrd中的节点。

第一步是确定单击了哪个节点,然后使用id,节点表示的整个对象或只是节点文本(字符串) )将该值添加到数据网格。


如果您有一些具有特定问题的代码,我们可以提供更精确的解决方案。


< blockquote class =post_quotes>
所以我认为你想要做的是表示datagrd中节点中显示的数据。


第一步是确定单击了哪个节点,然后使用id,节点表示的整个对象或节点文本(字符串)将该值添加到数据网格。


也许如果你有一些具有特定问题的代码我们可以提供更精确的sol ution。



您好,感谢您的回复。如果您能帮我一个示例C#代码拖放节点从treeview到Datagrid这将是一个很好的帮助...


提前致谢...



您好,感谢您的回复。如果你可以帮我一个带有C#代码的示例代码来从树视图拖放节点到Datagrid这将是一个很好的帮助...


提前谢谢...



我非常愿意尝试在您的代码中找到错误并帮助您修复它,先尝试一下。


Can any help me How to Drag and Drop node from treeview to Datagrid using c#

解决方案

So i think what you want to do is represent the data shown in the node in a datagrd.

The first step would be to determine which node was clicked, then using an id, the entire object represented by the node or just the node text (a string) add that value to the datagrid.

perhaps if you had some code with a specific problem we could provide a more precise solution.


So i think what you want to do is represent the data shown in the node in a datagrd.

The first step would be to determine which node was clicked, then using an id, the entire object represented by the node or just the node text (a string) add that value to the datagrid.

perhaps if you had some code with a specific problem we could provide a more precise solution.


Hi Thanks for the reply.If you could help me a with a sample C# code to Drag and Drop node from treeview to Datagrid It''ll be a great help...

Thanks in advance ...


Hi Thanks for the reply.If you could help me a with a sample C# code to Drag and Drop node from treeview to Datagrid It''ll be a great help...

Thanks in advance ...

I am more than willing to try and find an error in YOUR code and to help you fix it, try something first.


这篇关于如何将节点从树视图拖放到Datagrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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