Skip to main content

ItemCheckingEventArgs Class

Provides data for the BaseCheckedListBoxControl.ItemChecking event of check list box controls.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

public class ItemCheckingEventArgs :
    ChangingEventArgs

Remarks

The BaseCheckedListBoxControl.ItemChecking event is fired when the checked state of a check list box’s item is about to be changed. This allows you to prevent the checked state from being changed.

The item affected is referred to by the ItemCheckingEventArgs.Index property. This specifies the index of the item within the BaseCheckedListBoxControl.Items collection.

The old and new checked states for the item are passed as the ItemCheckingEventArgs.OldValue and ItemCheckingEventArgs.NewValue properties. To prevent the modification, you can set the Cancel parameter to true.

Inheritance

See Also