Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / November 2006

Tip: Looking for answers? Try searching our database.

ListView ListItems - can they be hidden?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Phill W. - 22 Nov 2006 10:44 GMT
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.
Ken Tucker [MVP] - 22 Nov 2006 11:29 GMT
Phill,

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

Ken
-------------------------
> Is it possible, in a VB'2003 ListView control to hide specific
> ListViewItems?
[quoted text clipped - 13 lines]
> TIA,
>    Phill  W.
Phill W. - 22 Nov 2006 15:47 GMT
>> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.