Uređivanje

Dijeli putem


IEditableObject.CancelEdit Method

Definition

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