GridControl.AddingNewRow Event

Fires before a new row is added to the data source via the Grid.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v19.2.dll


public event AddingNewEventHandler AddingNewRow
Public Event AddingNewRow As AddingNewEventHandler


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).


The AddingNewRow event does not fire when you add a new row directly to a bound data source.

See Also