Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IEditableObject.CancelEdit Method

Definition

Namespace:
System.ComponentModel
Assemblies:
System.dll, System.ComponentModel.dll
Assemblies:
netstandard.dll, System.ComponentModel.dll
Assembly:
System.ComponentModel.dll
Assembly:
System.dll
Assembly:
netstandard.dll
Source:
IEditableObject.cs
Source:
IEditableObject.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Discards changes since the last BeginEdit() call.

public:
 void CancelEdit();
public void CancelEdit();
abstract member CancelEdit : unit -> unit
Public Sub CancelEdit ()

Remarks

This method is typically used to capture the CancelEdit semantics of a DataRowView.

This method will be ignored if called on an object that is not being edited.

Note

If the owning list implements IBindingList, calling CancelEdit on an object created using IBindingList.AddNew discards the object.

Applies to


Feedback

Was this page helpful?