473,327 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

ListView ListItems - can they be hidden?

Is it possible, in a VB'2003 ListView control to hide specific
ListViewItems?

I have a ListView that I've loaded with stuff but it would be useful to
be able to view these items as
(a) the complete list,
(b) a subset that matches a given criteria, or
(c) the complementary subset that doesn't match the criteria.

I've gotten as far as changing the text colour of items in each subset,
greying out the "unwanted" ones, but it would better to hide them
altogether.

Is this possible?

TIA,
Phill W.
Nov 22 '06 #1
2 1290
Phill,

You will have to remove the listviewitem from the listview to
hide it

Ken
-------------------------
"Phill W." <p-.-a-.-w-a-r-d@o-p-e-n-.-a-c-.-u-kwrote in message
news:ek**********@south.jnrs.ja.net...
Is it possible, in a VB'2003 ListView control to hide specific
ListViewItems?

I have a ListView that I've loaded with stuff but it would be useful to be
able to view these items as
(a) the complete list,
(b) a subset that matches a given criteria, or
(c) the complementary subset that doesn't match the criteria.

I've gotten as far as changing the text colour of items in each subset,
greying out the "unwanted" ones, but it would better to hide them
altogether.

Is this possible?

TIA,
Phill W.
Nov 22 '06 #2
Ken Tucker [MVP] wrote:
"Phill W." <p-.-a-.-w-a-r-d@o-p-e-n-.-a-c-.-u-kwrote in message
news:ek**********@south.jnrs.ja.net...
>Is it possible, in a VB'2003 ListView control to hide specific
ListViewItems?
You will have to remove the listviewitem from the listview to
hide it
I was afraid of that.
I don't suppose there's anyway to pre-prepare a list of ListViewItems
and "plug" them in all in one go, is there?
Ah; No, the Items property is read-only, so I guess not.

OK; if I'm going to have to reload the ListView each time I filter it,
is there anyway I can "lock" the Control, to prevent it redrawing itself
while I'm doing so - it should be faster and a lot less "flickery" than
it is now.

TIA,
Phill W.
Nov 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Jon Ripley | last post by:
Using VB6 (for two weeks!) I could get a ListBox search working perfectly but with a ListView it has completely stumped me. I've not found any previous posts that have helped :( The user...
0
by: S.W. Rasmussen | last post by:
Hi, A trivial question: Is there an easier/more elegant way of swapping two lines in a 5-column listview control than the "primitive" method indicated below? Dim tmp0 As...
1
by: Shaolin | last post by:
Hi guys I;m trying to move all my Listview content into a module because I have to call it several times and it becomes annoying having to type it a number of times. I'm a little stuck though....
0
debasisdas
by: debasisdas | last post by:
Select Microsoft windows common controls 6.0 (SP6) from components Add a ListView control to the form. Add 2 ImageList controls to the form. Add some bitmaps to both the imagelist. Set the name...
0
debasisdas
by: debasisdas | last post by:
This sample code displays employee name in the treeview control from the emp table of Scott schema in oracle database. To start with Select Microsoft windows common controls 6.0 (SP6) from...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.