Code Comments
Programming Forum and web based access to our favorite programming groups.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.
Post Follow-up to this message: 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. : : :
Post Follow-up to this messageThanks. 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. > : > : > : >
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.