Provides data for the BindingSource.AddingNew event.
See Also: AddingNewEventArgs
The AddingNewEventArgs class provides data for the BindingSource.AddingNew event, which signals that an item is about to be added to a collection. The event gives the programmer, within the event handler AddingNewEventHandler, the option of supplying the new object by setting the AddingNewEventArgs.NewObject property to this new item. If this property is not set, the collection will typically use the default constructor of the appropriate type to construct a new item. In either case, the new item will be added to the collection.
If the collection also implements the ICancelAddNew interface, the item will be provisionally added, waiting a subsequent commit or rollback.
For more information about handling events, see Consuming Events.
Assembly: System (in System.dll)
Assembly Versions: 220.127.116.11, 18.104.22.168
Since: .NET 2.0
The members of System.ComponentModel.AddingNewEventArgs are listed below.
See Also: EventArgs