Home > Archive > Visual Basic > October 2004 > Hide a column in a listview?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Hide a column in a listview?
|
|
| Saucer Man 2004-10-30, 3:55 pm |
| Can I hide a column in a listview? Currently, I am setting the column width
to 0 but the user can still drag the column open.
--
Thanks.
| |
| Randy Birch 2004-10-30, 3:55 pm |
| : Can I hide a column in a listview?
No.
: Currently, I am setting the column width
: to 0 but the user can still drag the column open.
That's about the only way. You can nail it down using subclassing, as shown
on my site, or you can opt to unload/reconfigure the headers/reload the data
if the goal is to produce a control that can either hide or show columns as
the user prefers.
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Saucer Man" <saucerman@nospam.com> wrote in message
news:35Ogd.19366$%I7.13313@newssvr31.news.prodigy.com...
: Can I hide a column in a listview? Currently, I am setting the column
width
: to 0 but the user can still drag the column open.
:
: --
:
: Thanks.
:
:
:
| |
| Saucer Man 2004-10-30, 3:55 pm |
| Thanks. It's not too big a deal the way it is now so I will leave it.
--
Thanks again.
"Randy Birch" <rgb_removethis@mvps.org> wrote in message
news:%23xfOmKpvEHA.3908@TK2MSFTNGP12.phx.gbl...
>: Can I hide a column in a listview?
>
> No.
>
> : Currently, I am setting the column width
> : to 0 but the user can still drag the column open.
>
> That's about the only way. You can nail it down using subclassing, as
> shown
> on my site, or you can opt to unload/reconfigure the headers/reload the
> data
> if the goal is to produce a control that can either hide or show columns
> as
> the user prefers.
>
> --
>
>
> Randy Birch
> MS MVP Visual Basic
> http://vbnet.mvps.org/
>
>
> "Saucer Man" <saucerman@nospam.com> wrote in message
> news:35Ogd.19366$%I7.13313@newssvr31.news.prodigy.com...
> : Can I hide a column in a listview? Currently, I am setting the column
> width
> : to 0 but the user can still drag the column open.
> :
> : --
> :
> : Thanks.
> :
> :
> :
>
|
|
|
|
|