ListCollectionView.AddNew Method ()


Starts an add transaction and returns the pending new item.

Namespace:   System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public object AddNew()

Return Value

Type: System.Object

The pending new item.

Calling AddNew starts an add transaction. You should call CommitNew or CancelNew to end the add transaction. A new item always appears in the collection view. Any filtering, sorting, or grouping that is applied to the view is applied to the new item when CommitNew is called.

.NET Framework
Available since 3.0
Return to top