Back to Devexpress

CheckedComboBoxEdit.ItemChecking Event

windowsforms-devexpress-dot-xtraeditors-dot-checkedcomboboxedit-5a74b497.md

latest3.6 KB
Original Source

CheckedComboBoxEdit.ItemChecking Event

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

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event EventHandler<ItemCheckingEventArgs> ItemChecking
vb
<DXCategory("Events")>
Public Event ItemChecking As EventHandler(Of ItemCheckingEventArgs)

Event Data

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

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
IndexGets the index of the item whose checked state is about to be changed.
IsBoundUpdatingEditValueFor internal use. Inherited from ChangingEventArgs.
IsTextChangingFor internal use. Inherited from ChangingEventArgs.
ModifiedByUserGets whether a user changed the value. Inherited from ChangingEventArgs.
NewValueGets or sets a new checked state for the item.
OldValueGets 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

ItemCheck

CheckedComboBoxEdit Class

CheckedComboBoxEdit Members

DevExpress.XtraEditors Namespace