Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IEditableObject.CancelEdit Method

Discards changes since the last BeginEdit call.

[Visual Basic]
Sub CancelEdit()
[C#]
void CancelEdit();
[C++]
void CancelEdit();
[JScript]
function 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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

IEditableObject Interface | IEditableObject Members | System.ComponentModel Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft