System.Windows.Forms.BindingManagerBase.CancelCurrentEdit Method

When overridden in a derived class, cancels the current edit.

Syntax

public abstract void CancelCurrentEdit ()

Remarks

This method is supported only if the data source implements the System.ComponentModel.IEditableObject interface. If the object does not implement the System.ComponentModel.IEditableObject interface, changes made to the data will not be discarded.

Calling the BindingManagerBase.CancelCurrentEdit method causes the Binding.Format event to occur.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0