System.Web.UI.WebControls.ListItem.Enabled Property

Gets or sets a value indicating whether the list item is enabled.

Syntax

public bool Enabled { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ListItem.Enabled property allows you to specify whether a System.Web.UI.WebControls.ListItem control is enabled or disabled. A System.Web.UI.WebControls.ListItem control that is disabled is dimmed to indicate that it cannot be selected. Use this property to disable a System.Web.UI.WebControls.ListItem control in either a System.Web.UI.WebControls.RadioButtonList control or a System.Web.UI.WebControls.CheckBoxList control.

Note:

You cannot use this property to disable a System.Web.UI.WebControls.ListItem control in a System.Web.UI.WebControls.DropDownList control or System.Web.UI.WebControls.ListBox control.

Requirements

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