BindingSource.CancelEdit Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Cancels the current edit operation.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void CancelEdit()

This method discards modifications to data since the last save or load operation if both of the following conditions are met:

This method calls the CancelCurrentEdit method of the underlying CurrencyManager, and is scoped to row-level changes.

.NET Framework
Available since 2.0
Return to top
Show: