BindingList<T> Constructor (IList<T>)

 

Initializes a new instance of the BindingList<T> class with the specified list.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public BindingList(
	IList<T> list
)

Parameters

list
Type: System.Collections.Generic.IList<T>

An IList<T> of items to be contained in the BindingList<T>.

Use this BindingList<T> to create a BindingList<T> that is backed by list, which ensures that changes to list are reflected in the BindingList<T>.

The following table shows initial property values for an instance of BindingList<T> class.

Property

Initial Value

AllowEdit

true

AllowNew

true if the list type has a default constructor; otherwise, false.

AllowRemove

true

RaiseListChangedEvents

true

.NET Framework
Available since 2.0
Return to top
Show: