将项目从列表视图传递到另一个表单文本框 [英] Passing items from a listview to another form textbox

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

问题描述


我试图将整个行从列表视图传递到另一个表单文本框,以编辑该行.就像我在主窗体中并具有一个编辑按钮一样,当我按下该按钮时,它应从列表视图中获取整行,并以另一种形式填充文本框以对其进行编辑..请帮助!

Hi
I''m trying to pass an entire row from a listview to another form textboxes to edit that row. Like I''m in the main form and have a edit button, when I press the button it should grab the entire row from the listview and populate the textbox in another form to edit it.. please help!

推荐答案

请参见在表单之间传递数据 [如何以两种形式在列表框之间复制所有项目 [
See Passing Data Between Forms[^] for some ideas on how to do this.

Also see this related thread and the discussion there: How to copy all the items between listboxes in two forms[^]


如果您愿意的话.然后看一下此CP文章更易于使用ListView [
If you are up for it. Then take a look at this CP article A Much Easier to Use ListView[^]. I use this control with with great pleasure. It has in-line edit function and much more.


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

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