Select One Item at a time CheckBoxList
-
does anyone know how to select one item at a time from checkboxlist control. if one item is selected and i select a second item i want the first one to be deselected.
-
does anyone know how to select one item at a time from checkboxlist control. if one item is selected and i select a second item i want the first one to be deselected.
Hello ! There is an enum type property in CheckedListBox control : 'SelectionMode' You have to set it to 'One' But You have to think about usability! When we say a CheckedListBox, user have in mind that he can check more than one item! (CheckBox vs RadioButton) You will have user frustration as a result :sigh: The best control to use in this case is a simple ListBox. :)
-
does anyone know how to select one item at a time from checkboxlist control. if one item is selected and i select a second item i want the first one to be deselected.
You should use a radio button group for this, as that is the purpose of that control. If using Windows Forms, any radio button that is selected will automatically deselect any other radio buttons in the same enclosing container (such as a group box or panel). ...or a simple ListBox as lisan suggested.
“Time and space can be a bitch.” –Gushie, Quantum Leap {o,o}.oO( Looking for a great RSS reader? Try FeedBeast! ) |)””’) Built with home-grown CodeProject components! -”-”-