Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ItemCheckingEventArgs Class

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

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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