Skip to main content

AddNew Method

Add a new item to the underlying collection. Returns the new item. After calling AddNew and changing the new item as desired, either CommitNew or CancelNew" should be called to complete the transaction.

Definition​

Namespace: Avalonia.Collections
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll)

public Object AddNew()

Return Value​

Object
The new item we are adding

See Also​

Reference​

DataGridCollectionView Class
Avalonia.Collections Namespace