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
NuGet Package: DevExpress.Win.Navigation
#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 Cancel |
Index | Gets the index of the item whose checked state is about to be changed. |
Is |
For internal use.
Inherited from Changing |
Is |
For internal use.
Inherited from Changing |
Modified |
Gets whether a user changed the value.
Inherited from Changing |
New |
Gets or sets a new checked state for the item. |
Old |
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.