GridControl.AddingNewRow Event
Fires before a new row is added to the data source via the Grid.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v22.1.dll
NuGet Package: DevExpress.WinUI
Declaration
Event Data
The AddingNewRow event's data class is AddingNewEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
NewObject | 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 AddingNewRow event does not fire when you add a new row directly to a bound data source.
See Also