将项目从一个列表框移动到另一个列表框 [英] Moving items from one listbox to another listbox

查看:102
本文介绍了将项目从一个列表框移动到另一个列表框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将项目从listbox1(从后端数据库填充)移动到listbox2(为空). 现在,在那之后,我必须将listbox2项添加到数据库中. 预先谢谢你……

how to move items from listbox1(which is populated from backend database) to listbox2(which is empty). Now after that i have to add listbox2 items to database. Thank u in advance......

推荐答案

迭代listbox1的项目集合并将所需的项目克隆到listbox2中,或克隆整个项目收集到listbox2中.

iterate the items collections for the listbox1 and clone the items you want into listbox2, or clone the entire collection into listbox2.

然后只需使用标准的插入或更新SQL语句将所需的内容写到其他数据库中即可.

Then simply write what you want into your other database using a standard insert or update SQL statement.


这篇关于将项目从一个列表框移动到另一个列表框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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