Hiding a listview column - CSharp

This is a discussion on Hiding a listview column - CSharp ; Hi! It seems that the listview column does not contain an option called "Hide". Any suggestions to implement such a hiding function excepting setting the column width = 0? Thanks....

+ Reply to Thread
Results 1 to 5 of 5

Hiding a listview column

  1. Default Hiding a listview column

    Hi! It seems that the listview column does not contain an option called
    "Hide". Any suggestions to implement such a hiding function excepting
    setting the column width = 0?

    Thanks.


  2. Default Re: Hiding a listview column

    Hi,
    Even I found the same scenario with same result! . I didn't found
    any other way other than setting width to zero.


    Cheryl wrote:
    > Hi! It seems that the listview column does not contain an option called
    > "Hide". Any suggestions to implement such a hiding function excepting
    > setting the column width = 0?
    >
    > Thanks.



  3. Default Re: Hiding a listview column

    But the user can still alter the column width when the column width is set
    to zero... And we can't lock the user from changing the column width...


    "Karthik D V" <Karthik.Veeraj> ???
    news:1186129101.939870.58470@q3g2000prf.googlegroups.com ???...
    > Hi,
    > Even I found the same scenario with same result! . I didn't found
    > any other way other than setting width to zero.
    >
    >
    > Cheryl wrote:
    >> Hi! It seems that the listview column does not contain an option called
    >> "Hide". Any suggestions to implement such a hiding function excepting
    >> setting the column width = 0?
    >>
    >> Thanks.

    >



  4. Default Re: Hiding a listview column

    Hi,

    "Karthik D V" <Karthik.Veeraj> wrote in message
    news:1186129101.939870.58470@q3g2000prf.googlegroups.com...
    > Hi,
    > Even I found the same scenario with same result! . I didn't found
    > any other way other than setting width to zero.


    Same here, width 0 is the only way I have found.



  5. Default Re: Hiding a listview column

    On Fri, 03 Aug 2007 09:43:04 +0200, Cheryl <justtosayhi@excite.com> wrote:

    > Hi! It seems that the listview column does not contain an option called
    > "Hide". Any suggestions to implement such a hiding function excepting
    > setting the column width = 0?
    >
    > Thanks.
    >
    >


    You could just remove that column (and add it later if necessary)

    --
    Happy coding!
    Morten Wennevik [C# MVP]

+ Reply to Thread

Similar Threads

  1. .net 2.0 listview last column width
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 11-15-2007, 07:42 PM
  2. hiding columns in gird based on column values
    By Application Development in forum DOTNET
    Replies: 2
    Last Post: 10-25-2007, 04:49 AM
  3. forcing listview to only one column
    By Application Development in forum CSharp
    Replies: 2
    Last Post: 08-24-2007, 08:47 AM
  4. listview column sort problem
    By Application Development in forum CSharp
    Replies: 4
    Last Post: 05-20-2005, 03:25 PM
  5. make listview column fill the whole listview
    By Application Development in forum basic.visual
    Replies: 4
    Last Post: 10-29-2003, 10:56 AM