473,387 Members | 1,899 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,387 software developers and data experts.

How to hide an item in listview, but not remove it.

yxq
Hello,
I want to hide an item in listview but not remove it, how to do?
Thank you
Nov 21 '05 #1
2 6963
AFAIK, that is not possible, the ListViewItem lacks the Visible property.
Doing custom draw you can avoid painting it, but the hole will be there, I
think.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"yxq" <ga***@163.net> escribió en el mensaje
news:ON**************@TK2MSFTNGP09.phx.gbl...
Hello,
I want to hide an item in listview but not remove it, how to do?
Thank you

Nov 21 '05 #2
JL
Are you talking about hiding the item and all sub-items (i.e. making
the row invisible?). If so, I do not know. But if you want to hide one
or more sub-items you can simply make their width 0. They can still be
accessed but the colum will be invisible.

John

On Wed, 26 Oct 2005 09:16:52 +0800, "yxq" <ga***@163.net> wrote:
Hello,
I want to hide an item in listview but not remove it, how to do?
Thank you


Nov 23 '05 #3

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

Similar topics

2
by: VR | last post by:
I have a form with a list view control, a button control and a main menu with menuDelete item. Any time I am handling a button click event or menuDelete click event I call DeleteItem() function...
2
by: billyb | last post by:
My listview has two columns: Email Address & Email Address Type. I've figured out how to populate it, but now I'm having trouble figuring out how to properly use the SelectedItems to get at the...
3
by: Li Pang | last post by:
Hi, I'd like to know how to hide a column of the listview control. anybody gives a hand? Thanks in advance
3
by: Chris | last post by:
Is it possible to hide specific rows in a listview? I currently have a listview in details view and the user can select multiple views which shows the listview items matching the selected...
0
by: news.microsoft.com | last post by:
Hello, I have attached a contextmenustrip in the designer to a listview. When running, if there is no item in my listview, the contextmenu still shows. How can I hide it when no item is...
1
by: karachiite1 | last post by:
How can I remove an Item and all its subitems on double_click in a ListViewControl such a way that I will add the same removed items to three text boxes in a text boxes on the same form. My listview...
2
by: Manfred | last post by:
Hello I try to add a listview item to the top of the list. I couldn't find the solution to this. After adding the item I like to remove the last item if a certain number of items is reached. ...
5
by: Bart Steur | last post by:
Hi, What's the best way to programmaticly select (click) another listview Item after removing the selected/focused one. using VB2005 Express. Thanks Bart
7
by: Brad Pears | last post by:
I have something strange going on - pretty sure it used to work before - and now it does not... Why does the following code not clear a combo box? Me.cboLocation.Text = String.Empty OR ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.