CancelNew Method
See Also 
Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridCollectionView Class : CancelNew Method

Discards the new item added through a call to the AddNew method before it is committed.

Syntax

Visual Basic (Declaration) 
Public Sub CancelNew() 
C# 
public void CancelNew()

Exceptions

ExceptionDescription
System.InvalidCastExceptionWhen manually handling the item-insertion process the CreatingNewItem, CommittingNewItem, and CancelingNewItem events must all be handled.

Requirements

Supported Frameworks: Microsoft .NET Framework version 3.5

See Also