Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET ListBox SelectionMode Property

ASP.NET SelectionMode Property


ListBox Control ListBox control


Definition and Usage

The SelectionMode property is used to get or set how the user selects items in the ListBox.

Syntax

Some Content

property Description
mode Specifies how the user selects items in the ListBox.

Possible values:

  • Single - Default. Multiple items cannot be selected.
  • Multiple - Multiple items can be selected.
  • |

    Example

    The following example sets the SelectionMode property of a ListBox control:

    SelectionMode="Multiple" />

    Demo Example »


    ListBox Control ListBox control