Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide/Show Listview SubItem Column

Status
Not open for further replies.

EdwinP

Programmer
Oct 26, 2000
6
US
How do I Hide/Show a ListView SubItem column. I do not want to set the width to 0. The user can still resize it and I would have to save it's width.
Thanks in advance.
 
Have you found an answer on this? I'm also having the same problem. Thanks.
 

So,,,, why even use the sub item in the list?

Your data for the list could be stored in another source such as an array or recordset, or something of the sort.

If that is where the data is, then the data that the user shouldn't see is there also.
If you need to refer to an element's value for a selected/certain item, then get the value from the source.
Any changes in the list control should also be a change in the source...and any changes in the source should be reflected in the list. [/b][/i][/u][sub]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
I can right click on the header in explorer and hide/show columns. I wanted the same effect without reloading the listview control.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top