| |||||||||||||||||
ListBox.SelectionMode PropertySystem.Web.UI.WebControls Namespace ListBox Class Sets or retrieves a value indicating whether one or more items can be selected in a ListBox control. Syntax
Property Value
The property is read/write with a default value of Single. Exceptions
RemarksUse the SelectionMode property specify the mode behavior of the ListBox control ( whether one or more items can be concurrently selected ). By default, only a single item can be selected. Setting this property to ListSelectionMode.Multiple specifies that more than one item can be selected. To determine multiple selected items, you need to loop through the ListBox.Items collection and test the Selected property of each item. ExampleThe following examples demonstrate using the SelectionMode property of a ListBox control, and how multiple selected items can be determined.
See Also |
| ||||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme