Skip to main content
Tab

ASPxListBox.SelectionMode Property

Gets or sets a value that specifies item selection behavior.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(ListEditSelectionMode.Single)]
public ListEditSelectionMode SelectionMode { get; set; }

Property Value

Type Default Description
ListEditSelectionMode Single

One of the ListEditSelectionMode enumeration values.

Available values:

Name Description
Single

Only one list box item can be selected at once.

Multiple

Multiple items can be selected within the editor by clicking list items while pressing Ctrl (to add an individual item) or Shift (to select a range of items).

CheckColumn

Multiple items can be selected within the editor by clicking specific check boxes or list items (the Shift key can also be used in this mode to select a range of items).

Remarks

This property is a wrapper of the ListBoxProperties.SelectionMode property.

Example

This part of the Multiple Selection demo illustrates how to use multi-selection mode for the ASPxListBox editor.

 ...
     protected void lbModels_Callback(object sender, DevExpress.Web.CallbackEventArgsBase e) {
         FilterModels(lbFeatures.Items);
         lbModels.DataBind();
     }
     protected void FilterModels(ListEditItemCollection items) {
     ...     
     }
...
See Also