右键菜单选项可以从gridview剪切,复制,粘贴到另一个gridview [英] right click menu option to cut,copy,paste from the gridview to another gridview

查看:153
本文介绍了右键菜单选项可以从gridview剪切,复制,粘贴到另一个gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,

我有gridview(vb.net,sql server 2005表)。我需要添加右键菜单选项来剪切,复制,粘贴从gridview到另一个gridview

请帮助

Dear Sir,
i have gridview (vb.net,sql server 2005 table). i need to add right click menu option to cut,copy,paste from the gridview to another gridview
please help

推荐答案

你的问题包含很多编码,这是一个快速的q / a论坛。我们无法帮助你。



剪切/复制/粘贴只是将选定的值存储在某个存储容器中。例如在文本文件中,如果你剪切文本,它存储在剪贴板中,然后粘贴时,值只从那里恢复。



现在你能做什么对于您的gridview,请选中要执行操作的行数的复选框,将所选行存储在某个集合中,即Array或List,然后使用该集合加载第二个gridview。您可以参考此处 [ ^ ]



-KR
Your question contains lots of coding, and this is quick q/a forum. We cannot help you this way.

Cut/Copy/Paste is nothing but the storing the selected values in some storage container. for example in text file, if you cut the text, it is stored in clipboard, and then while pasting, values are restoring from there only.

Now what you can do for your gridview is, have the checkbox for how much rows you want to perform the operation, store the selected rows in some collection i.e Array or List and then load the second gridview using that collection. You can have a reference from here[^]

-KR


这篇关于右键菜单选项可以从gridview剪切,复制,粘贴到另一个gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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