Skip to main content
A newer version of this page is available. .

CheckedListBoxItem.Enabled Property

Gets or set whether an end-user can change the item’s state.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

[DefaultValue(true)]
public virtual bool Enabled { get; set; }

Property Value

Type Default Description
Boolean **true**

true if the item is enabled and an end-user can change its state; otherwise, false.

Remarks

Use the Enabled property to temporarily disable an item. The disabled item is displayed grayed and doesn’t respond to mouse events. An end-user cannot change its state, i.e. the BaseCheckedListBoxControl.ItemChecking event is not raised when clicking the item.

The image below shows the CheckedListBox control with enabled and disabled items.

CheckedListBoxItem_Enabled

Note: the item’s checked state can be changed via code regardless of the Enabled property’s value.

To disable specific items in bound mode, handle the BaseCheckedListBoxControl.GetItemEnabled event.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Enabled property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also