BindingList<T> Constructor (IList<T>^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: