ListView Multicolumn [英] ListView Multicolumn

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

问题描述

VS 2005


如何判断一个特定列中是否包含一个值(让我们说

第1列名为Status)一个ListView?


在一个列表框中你可以去...

如果ListBox1.Items.Contains(strWhatever)那么


如何使用ListView完成此操作?

VS 2005

How can you tell if a value is contained in a specific column (let''s say
column 1 named Status) of a ListView ?

In a list box you could go...

If ListBox1.Items.Contains(strWhatever) then

How would you accomplish this using a ListView ?

推荐答案



Rob < ro *** @ yahoo.com写了留言

新闻:Ho *************************** ***@comcast.com。 ..

"Rob" <ro***@yahoo.comwrote in message
news:Ho******************************@comcast.com. ..

VS 2005

如何判断某个值是否包含在特定列中(让's'说一个ListView的
第1列命名为Status?


在列表框中你可以去...


如果ListBox1.Items.Contains(strWhatever)那么


你会如何使用ListView完成这个?
VS 2005

How can you tell if a value is contained in a specific column (let''s say
column 1 named Status) of a ListView ?

In a list box you could go...

If ListBox1.Items.Contains(strWhatever) then

How would you accomplish this using a ListView ?



Wouldn那是不是从子项目?自从我使用

ListView后,这是一个记录时间。


我认为每个子项代表一列中的数据。

Wouldn''t that be off of subitem? It''s been a log time since I worked with a
ListView.

I think each subitem represents data in a column.


是的,我认为它是这样的...


MsgBox(ListView1.Items(intCount).SubItems(0) .Text)

MsgBox(ListView1.Items(intCount).SubItems(1).Text)


谢谢,

Rob

先生。阿诺德" < MR。 Ar****@Arnold.com 在留言中写道

新闻:哦***** ********* @ TK2MSFTNGP03.phx.gbl ...
Yes, I think it goes like this...

MsgBox(ListView1.Items(intCount).SubItems(0).Text)
MsgBox(ListView1.Items(intCount).SubItems(1).Text)

Thanks,
Rob
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:Oh**************@TK2MSFTNGP03.phx.gbl...

>

" Rob" < ro *** @ yahoo.com写了留言

新闻:Ho *************************** ***@comcast.com。 ..
>
"Rob" <ro***@yahoo.comwrote in message
news:Ho******************************@comcast.com. ..

> VS 2005

如何判断某个值是否包含在特定列中(让我们说< ListView名为Status的ListView?

在列表框中你可以去...

如果ListBox1.Items.Contains(strWhatever)那么
>VS 2005

How can you tell if a value is contained in a specific column (let''s say
column 1 named Status) of a ListView ?

In a list box you could go...

If ListBox1.Items.Contains(strWhatever) then

How would you accomplish this using a ListView ?



那不是subitem吗?这是一个记录时间,因为我使用了

一个ListView。


我认为每个子项代表一列中的数据。


Wouldn''t that be off of subitem? It''s been a log time since I worked with
a ListView.

I think each subitem represents data in a column.



Rob,


作为您已经展示过的platinumBay,尝试使用数据和不是用

控件,因为它是由输入数据的用户直接控制的。


Cor


"罗布" < ro *** @ yahoo.comschreef在bericht

新闻:Ho *************************** ***@comcast.com。 ..
Rob,

As platinumBay you already showed, try to work with the data and not with
the controls as it is direct by a user typed in data.

Cor

"Rob" <ro***@yahoo.comschreef in bericht
news:Ho******************************@comcast.com. ..

VS 2005

如何判断某个值是否包含在特定列中(让's'说一个ListView的
第1列命名为Status?


在列表框中你可以去...


如果ListBox1.Items.Contains(strWhatever)那么


你会如何使用ListView来实现这个目标?


VS 2005

How can you tell if a value is contained in a specific column (let''s say
column 1 named Status) of a ListView ?

In a list box you could go...

If ListBox1.Items.Contains(strWhatever) then

How would you accomplish this using a ListView ?




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

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