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)
- C#
- VB
- F#
public Object AddNew()
Public Function AddNew As Object
abstract AddNew : unit -> Object
override AddNew : unit -> Object
Return Value
Object
The new item we are adding