Jump to content

Hidden columns in listview


bobbo85
 Share

Recommended Posts

Can I choose to hide columns in a listview? I would like to use a listview to store data, and display only a few of the columns as kind of a preview.

I am using a listview as a queue - a user fills out a form almost like a "contacts" entry, and the fields are stored in columns. As of now, I have a visible listview, and i have a hidden listview... so when a user "adds" an entry, my script has to add the appropriate info to both listviews. I feel like this is awfully wasteful.

The reason I want to have this, is so a user can see the list they've made so far, and remove entries they want to. Using the contact book example, it's like just seeing the name and phone number in a basic view, vs opening the detailed window for an individual and seeing their alternate contact info, nicknames, notes, etc.

Link to comment
Share on other sites

You could set the column width to zero.

#include <GuiListView.au3>

GUICtrlSendMsg($ListView1, $LVM_SETCOLUMNWIDTH, Column#, 0)

Can I choose to hide columns in a listview? I would like to use a listview to store data, and display only a few of the columns as kind of a preview.

I am using a listview as a queue - a user fills out a form almost like a "contacts" entry, and the fields are stored in columns. As of now, I have a visible listview, and i have a hidden listview... so when a user "adds" an entry, my script has to add the appropriate info to both listviews. I feel like this is awfully wasteful.

The reason I want to have this, is so a user can see the list they've made so far, and remove entries they want to. Using the contact book example, it's like just seeing the name and phone number in a basic view, vs opening the detailed window for an individual and seeing their alternate contact info, nicknames, notes, etc.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...