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. Windows Forms
  4. ListView multi-select checkbox bug [modified]

ListView multi-select checkbox bug [modified]

Scheduled Pinned Locked Moved Windows Forms
helpcsharpquestion
2 Posts 2 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.
  • M Offline
    M Offline
    molesworth
    wrote on last edited by
    #1

    Have any of you come across, or, more interestingly, found a work-around for the bug in ListView, where doing multi-select in a multi-column control, with check boxes and full-row select enabled, causes the check state of already selected items to change? It's really annoying, as I'd like to keep full row selection, and multi-select. (edit : more detailed description below) I found a message from MS admitting there was a problem, dated 2002(:omg:) so it looks like they're not in any hurry to fix it. The alternative is to track all the select and checked states myself, and do my own updates in the selection changed handler, which is just extra work and extra code. I'm hoping somebody has a quick and easy solution, but none of the searches I've done has turned up anything useful... edit : a more detailed description of the problem :- Create a multi-column ListView, set to "Details" view mode, with checkboxes enabled (they appear in the first column), as well as multi-select and full row select. Try selecting, and checking the checkboxes. When multi-selecting (ctrl+click) and clicking in any except the first column, the check boxes for rows already selected will nearly always toggle state.

    There are three kinds of people in the world - those who can count and those who can't...

    modified on Friday, June 5, 2009 2:10 PM

    H 1 Reply Last reply
    0
    • M molesworth

      Have any of you come across, or, more interestingly, found a work-around for the bug in ListView, where doing multi-select in a multi-column control, with check boxes and full-row select enabled, causes the check state of already selected items to change? It's really annoying, as I'd like to keep full row selection, and multi-select. (edit : more detailed description below) I found a message from MS admitting there was a problem, dated 2002(:omg:) so it looks like they're not in any hurry to fix it. The alternative is to track all the select and checked states myself, and do my own updates in the selection changed handler, which is just extra work and extra code. I'm hoping somebody has a quick and easy solution, but none of the searches I've done has turned up anything useful... edit : a more detailed description of the problem :- Create a multi-column ListView, set to "Details" view mode, with checkboxes enabled (they appear in the first column), as well as multi-select and full row select. Try selecting, and checking the checkboxes. When multi-selecting (ctrl+click) and clicking in any except the first column, the check boxes for rows already selected will nearly always toggle state.

      There are three kinds of people in the world - those who can count and those who can't...

      modified on Friday, June 5, 2009 2:10 PM

      H Offline
      H Offline
      hground
      wrote on last edited by
      #2

      I recently answered this in another thread: http://www.codeproject.com/Messages/3417741/Re-how-to-disable-multi-select-of-checkbox-in-list.aspx HTH - hground

      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