System.ComponentModel.BindingList<T>.AddingNew Event

Occurs before an item is added to the list.

Syntax

public event AddingNewEventHandler AddingNew

Remarks

The BindingList`1.AddingNew event occurs before a new object is added to the collection represented by the System.Collections.ObjectModel.Collection`1.Items property. This event is raised after the BindingList`1.AddNew method is called, but before the new item is created and added to the internal list. By handling this event, the programmer can provide custom item creation and insertion behavior without being forced to derive from the System.ComponentModel.BindingList`1 class.

For more information about supplying custom new item functionality, see the BindingList`1.AddNew method. For more information about handling events, see Consuming Events.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0