System.Web.UI.WebControls.ListBox.SelectionMode Property

Gets or sets the selection mode of the System.Web.UI.WebControls.ListBox control.

Syntax

[System.ComponentModel.DefaultValue(System.Web.UI.WebControls.ListSelectionMode.Single)]
public virtual ListSelectionMode SelectionMode { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the ListBox.SelectionMode property to specify the mode behavior of the System.Web.UI.WebControls.ListBox control. Setting this property to ListSelectionMode.Single indicates only a single item can be selected from the System.Web.UI.WebControls.ListBox control, while ListSelectionMode.Multiple specifies multiple items can be selected.

The value of the ListBox.SelectionMode property is stored in view state.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0