CancelingNewItem Event
See Also 
Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridCollectionViewBase Class : CancelingNewItem Event

Raised when the CancelNew method has been called to signal that the insertion process of a new item is about to be canceled.

Syntax

Visual Basic (Declaration) 
Public Event CancelingNewItem() As EventHandler(Of DataGridItemHandledEventArgs)
C# 
public event EventHandler<DataGridItemHandledEventArgs> CancelingNewItem()

Notes

Manually handling the insertion of new items requires that the CreatingNewItem, CommitingNewItem, and CancelingNewItem events must all be handled otherwise an InvalidOperationException will be thrown.

The new item should be added to the underlying data source in the CommitingNewItem event rather than the CreatingNewItem event

Requirements

Supported Frameworks: Microsoft .NET Framework version 3.5

See Also