Michael Pfister
asked on
C# 2010 ListView control with checkboxes reaction to space bar
I have a form with a C# ListBox control containing a list of strings, strings may contain space characters.
When I create the ListBox without "CheckBoxes" everything works fine, a user can type parts of the string and the selection bar within the listbox will move to the item corresponding to the string he's typing. Typing strings with spaces will move to the corresponding item as well.
As soon as I set the CheckBoxes property to True to add a checkbox column, the behaviour changes and the space bar will toggle the checkbox now.
I need the checkbox, any simple way to return the listbox to the same scroll behaviour as it was without the checkbox
When I create the ListBox without "CheckBoxes" everything works fine, a user can type parts of the string and the selection bar within the listbox will move to the item corresponding to the string he's typing. Typing strings with spaces will move to the corresponding item as well.
As soon as I set the CheckBoxes property to True to add a checkbox column, the behaviour changes and the space bar will toggle the checkbox now.
I need the checkbox, any simple way to return the listbox to the same scroll behaviour as it was without the checkbox
Is this a windows or .net application?
ASKER
A WindowsForms application/ .NET 4
Hmm, I see a listbox control but with no 'checkboxes' option, I also see checkedlistbox control. Are you using one of these MS common controls or a third party control?
ASKER
Not ListBox, but ListView, sorry, my mistake
No 3rd party involved
No 3rd party involved
I researched it, and do not see a way to do it. Sorry..
ASKER
Do you know a 3rd party control that could do it?
Sorry I do not.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.