ListSelectionMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the selection mode of the ListBox control.
public enum class ListSelectionMode
public enum ListSelectionMode
type ListSelectionMode =
Public Enum ListSelectionMode
- Inheritance
Fields
| Name | Value | Description |
|---|---|---|
| Single | 0 | Single item selection mode. |
| Multiple | 1 | Multiple item selection mode. |
Examples
<%@ Page language="c#" AutoEventWireup="true"%>
<%@ Import Namespace="System.Data" %>
ListItemCollection Example
<%@ Page language="VB" AutoEventWireup="true"%>
<%@ Import Namespace="System.Data" %>
ListItemCollection Example
Remarks
The ListSelectionMode enumeration represents the selection mode of the ListBox control that determines whether a user can select multiple items or just a single item.