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

ChangingEventArgs Class

Provides data for the RepositoryItem.EditValueChanging event.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public class ChangingEventArgs :
    CancelEventArgs
Public Class ChangingEventArgs
    Inherits CancelEventArgs

Remarks

The RepositoryItem.EditValueChanging event is raised when the edit value is about to be changed. It enables you to prevent the value from changing. Thus, the CancelEventArgs class introduces the ChangingEventArgs.NewValue and ChangingEventArgs.OldValue properties that identify the potential and current edit values. The inherited Cancel property can be used to cancel the action.

ChangingEventArgs objects are automatically created, modified and passed to RepositoryItem.EditValueChanging event handlers.

See Also