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. HowTo?: Vb.Net ListView

HowTo?: Vb.Net ListView

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
3 Posts 3 Posters 0 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.
  • P Offline
    P Offline
    peakdw13
    wrote on last edited by
    #1

    I am using a listview control in Details mode that has three columns as follows: Q100 C true Q200 N false Q300 N true I would like to display a checkbox in the third column. Does anyone have any suggestions for adding a checkbox in the third column. TIA! - Derek

    D 1 Reply Last reply
    0
    • P peakdw13

      I am using a listview control in Details mode that has three columns as follows: Q100 C true Q200 N false Q300 N true I would like to display a checkbox in the third column. Does anyone have any suggestions for adding a checkbox in the third column. TIA! - Derek

      D Offline
      D Offline
      David Stone
      wrote on last edited by
      #2

      You may want to look into using a datagrid instead. You would have to do some code for the bubbling events, but it would surely be easier than drawing your own custom control. David Stone dstone@newcenturytitle.com "I am but mad north-northwest, when the wind is southerly I know a hawk from a handsaw." -Hamlet

      L 1 Reply Last reply
      0
      • D David Stone

        You may want to look into using a datagrid instead. You would have to do some code for the bubbling events, but it would surely be easier than drawing your own custom control. David Stone dstone@newcenturytitle.com "I am but mad north-northwest, when the wind is southerly I know a hawk from a handsaw." -Hamlet

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Thx for the reply! I have resorted to using the listview control but with the checkedboxes property set to True. It's not exactly what I wanted but I am tired of fighting with the listview and the datagrid. The problem that I had with the datagrid is that the dragdrop events (lack of itemdrag) were more difficult to deal with as compared to the listview. Although, at least with the datagrid I could add checkboxes to easily to a datacolumn. I was able to add checkboxes to a listview but the problem is that I just ended up painting the controls on top of the listview verses binding the control to the actual column. So when I scrolled thru the list the checkboxes were not bound to a specific row (sub-item). If I get some free time then I might try making a listview control that acts more like a datagrid. - Derek

        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