A newer version of this page is available. Switch to the current version.

ItemCheckingEventArgs Class

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

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public class ItemCheckingEventArgs :
    ChangingEventArgs
Public Class ItemCheckingEventArgs
    Inherits 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