GridControl.AddingNewRow Event
In This Article
Fires before a new row is added to the data source via the Grid.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
public event AddingNewEventHandler AddingNewRow
#Event Data
The AddingNewRow event's data class is AddingNewEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
New |
Gets or sets the object to be added to the binding list. |
#Remarks
Use the AddingNewRow event to customize the initialization of a new row. To do this, create a data item and set it as the event’s NewObject property value. By default, the NewObject property returns null (adding a new row is canceled).
Note
The Adding
See Also