Skip to main content
All docs
V24.2

CheckedComboBoxEdit.ItemChecking Event

Fires before an item’s check state changes and allows you to cancel the action.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

[DXCategory("Events")]
public event EventHandler<ItemCheckingEventArgs> ItemChecking

Event Data

The ItemChecking event's data class is ItemCheckingEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
Index Gets the index of the item whose checked state is about to be changed.
IsBoundUpdatingEditValue For internal use. Inherited from ChangingEventArgs.
IsTextChanging For internal use. Inherited from ChangingEventArgs.
ModifiedByUser Gets whether a user changed the value. Inherited from ChangingEventArgs.
NewValue Gets or sets a new checked state for the item.
OldValue Gets the item’s previous checked state.

Remarks

The editor raises the ItemChecking event when an item’s check state is about to be changed by the user or in code. Set the Cancel parameter to true to cancel the action.

The OldValue and NewValue event parameters specify the current check state and the new state (that is about to be set). The Index parameter gets the processed item’s index.

The ItemCheck event fires after the check state was changed.

See Also