Skip to main content
A newer version of this page is available. .

ChangingEventArgs Class

Provides data for the RepositoryItem.EditValueChanging event.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v18.1.dll

Declaration

public class ChangingEventArgs :
    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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ChangingEventArgs class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also