IEditableCollectionView::CommitNew Method ()
.NET Framework (current version)
Ends the add transaction and saves the pending new item.
Assembly: WindowsBase (in WindowsBase.dll)
Any filtering, sorting, or grouping that is applied to the CollectionView is applied to the new item when CommitNew is called.
The following example displays a form that prompts the user to add a new item. If the user submits the form, the example calls CommitNew to add the item to the collection. If the user cancels the form, the example calls CancelNew to discard the item. For the entire sample, see Changing a Collection by Using IEditableCollectionView Sample.
.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.1
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.1
Show: