System.Web.UI.WebControls.ListItem.Selected Property

Gets or sets a value indicating whether the item is selected.

Syntax

[System.ComponentModel.DefaultValue(false)]
public bool Selected { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the ListItem.Selected property to determine whether the System.Web.UI.WebControls.ListItem is currently selected in the list control that contains it. This property is commonly used, when iterating through a collection of System.Web.UI.WebControls.ListItem objects in a list control, to determine whether an item is selected.

Requirements

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