This documentation is archived and is not being maintained.

IEditableObject.CancelEdit Method

Discards changes since the last BeginEdit call.

[Visual Basic]
Sub CancelEdit()
void CancelEdit();
void CancelEdit();
function CancelEdit();


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.


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