使用多列列表视图 [英] Using the multi-column list view

查看:72
本文介绍了使用多列列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我在高低寻找其解决方案
问题是这是我有多个列的列表视图,可以说4,并且我想将所选行添加到多个文本框中,任何人都可以提前帮助实现此thanx

Hi guys I have a problem I have searched high and low for its solution
the problem is this I have list view with multiple colums lets say 4 and I want to add the the selected row to multiple text boxes can anyone help achieve this thanx in advance

推荐答案

您好sijimann,如果我对您的问题提出正确的要求,您需要这样的内容:
Hi sijimann, if I got your question right you need something like this:
TextBox1.Text = ListView1.SelectedItems[0].SubItems[1].Text;


使用SubItem [n]元素,可以循环访问起始索引为0的列.

希望这会有所帮助.
干杯
菲尔


With the SubItem[n] Element you can iterate through your columns with the starting index 0.

Hope this helps.
Cheers
Phil


这篇关于使用多列列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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