Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Hide a listView column

Hide a listView column

Scheduled Pinned Locked Moved Visual Basic
6 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mounirbraham
    wrote on last edited by
    #1

    is there any method that make me abale to hide a column in a listView without removing the column. thanks,

    M B 2 Replies Last reply
    0
    • M mounirbraham

      is there any method that make me abale to hide a column in a listView without removing the column. thanks,

      M Offline
      M Offline
      mr_12345
      wrote on last edited by
      #2

      set the column width to 0

      M 1 Reply Last reply
      0
      • M mr_12345

        set the column width to 0

        M Offline
        M Offline
        mounirbraham
        wrote on last edited by
        #3

        thanks for replying: it's the first idea that i do it but , it remain existed in listview and the user can resize it , son it will appear again , I have tried to catch the listview resize event to set the column width to 0 again but it doesn't works. (There will be a recursive call) -- modified at 5:52 Wednesday 10th May, 2006

        1 Reply Last reply
        0
        • M mounirbraham

          is there any method that make me abale to hide a column in a listView without removing the column. thanks,

          B Offline
          B Offline
          bony_baba
          wrote on last edited by
          #4

          make th ewidth of the column 0(Zero) Thanks

          M 1 Reply Last reply
          0
          • B bony_baba

            make th ewidth of the column 0(Zero) Thanks

            M Offline
            M Offline
            mounirbraham
            wrote on last edited by
            #5

            it's the first idea that i do it but , it remain existed in listview and the user can resize it , son it will appear again , I have tried to catch the listview resize event to set the column width to 0 again but it doesn't works. (There will be a recursive call)

            J 1 Reply Last reply
            0
            • M mounirbraham

              it's the first idea that i do it but , it remain existed in listview and the user can resize it , son it will appear again , I have tried to catch the listview resize event to set the column width to 0 again but it doesn't works. (There will be a recursive call)

              J Offline
              J Offline
              jcrussell
              wrote on last edited by
              #6

              it doesn't have to be recursive: if the size of the column is not 0, then resize the column if the size of the column is 0, then exit the function Jason

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups