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