SelectList SelectList SelectList Class

Definition

Represents a list that lets users select one item.

public class SelectList : System.Web.Mvc.MultiSelectList
type SelectList = class
    inherit MultiSelectList
Public Class SelectList
Inherits MultiSelectList
Inheritance

Constructors

SelectList(IEnumerable) SelectList(IEnumerable) SelectList(IEnumerable)

Initializes a new instance of the SelectList class by using the specified items for the list.

SelectList(IEnumerable, Object) SelectList(IEnumerable, Object) SelectList(IEnumerable, Object)

Initializes a new instance of the SelectList class by using the specified items for the list and a selected value.

SelectList(IEnumerable, Object, IEnumerable) SelectList(IEnumerable, Object, IEnumerable) SelectList(IEnumerable, Object, IEnumerable)

Initializes a new instance of the SelectList class by using the specified items for the list, the selected value, and the disabled values.

SelectList(IEnumerable, String, String) SelectList(IEnumerable, String, String) SelectList(IEnumerable, String, String)

Initializes a new instance of the SelectList class by using the specified items for the list, the data value field, and the data text field.

SelectList(IEnumerable, String, String, Object) SelectList(IEnumerable, String, String, Object) SelectList(IEnumerable, String, String, Object)

Initializes a new instance of the SelectList class by using the specified items for the list, the data value field, the data text field, and a selected value.

SelectList(IEnumerable, String, String, Object, IEnumerable) SelectList(IEnumerable, String, String, Object, IEnumerable) SelectList(IEnumerable, String, String, Object, IEnumerable)

Initializes a new instance of the SelectList class by using the specified items for the list, the data value field, the data text field, the selected value, and the disabled values.

SelectList(IEnumerable, String, String, String, Object) SelectList(IEnumerable, String, String, String, Object) SelectList(IEnumerable, String, String, String, Object)

Initializes a new instance of the SelectList class by using the specified items for the list, the data value field, the data text field, the data group field, and the selected value.

SelectList(IEnumerable, String, String, String, Object, IEnumerable) SelectList(IEnumerable, String, String, String, Object, IEnumerable) SelectList(IEnumerable, String, String, String, Object, IEnumerable)

Initializes a new instance of the SelectList class by using the specified items for the list, the data value field, the data text field, the data group field, the selected value, and the disabled values.

SelectList(IEnumerable, String, String, String, Object, IEnumerable, IEnumerable) SelectList(IEnumerable, String, String, String, Object, IEnumerable, IEnumerable) SelectList(IEnumerable, String, String, String, Object, IEnumerable, IEnumerable)

Initializes a new instance of the SelectList class by using the specified items for the list, the data value field, the data text field, the data group field. the selected value, the disabled values, and the disabled groups.

Properties

DataGroupField DataGroupField DataGroupField

Gets the data group field.

(Inherited from MultiSelectList)
DataTextField DataTextField DataTextField

Gets or sets the data text field.

(Inherited from MultiSelectList)
DataValueField DataValueField DataValueField

Gets or sets the data value field.

(Inherited from MultiSelectList)
DisabledGroups DisabledGroups DisabledGroups

Gets the disabled groups.

(Inherited from MultiSelectList)
DisabledValues DisabledValues DisabledValues

Gets the disabled values.

(Inherited from MultiSelectList)
Items Items Items

Gets or sets the items in the list.

(Inherited from MultiSelectList)
SelectedValue SelectedValue SelectedValue

Gets the list value that was selected by the user.

SelectedValues SelectedValues SelectedValues

Gets or sets the selected values.

(Inherited from MultiSelectList)

Methods

GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that can be used to iterate through the collection.

(Inherited from MultiSelectList)

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator can be used to iterate through a collection.

(Inherited from MultiSelectList)

Applies to