A newer version of this page is available.
Switch to the current version.
TreeListView.AddingNewNode Event
Occurs before adding a new node to a data grid and allows you to initialize the new record.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v19.2.dll
Declaration
public event TreeListAddingNewEventHandler AddingNewNode
Public Event AddingNewNode As TreeListAddingNewEventHandler
Event Data
The AddingNewNode event's data class is TreeListAddingNewEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
NewObject | Gets or sets the object to be added to the binding list. Inherited from AddingNewEventArgs. |
ParentNode | A parent node. |
Remarks
TIP
Topic: Add and Remove Rows
The AddingNewNode event fires when a new node is added to a grid using any of the control means. To initialize a new row, assign the initialized record to event arguments' NewObject property.
NOTE
The AddingNewNode event does not fire when you add a new node directly to a bound data source.
See Also
Feedback