Question

How can I cast an IList<Customer> list to BindingList<Customer>?

Was it helpful?

Solution

var yourList = new List<Customer>();
var listBinding = new BindingList<Customer>(yourList);

BindingList Constructors

You don't need to do a cast, just provide the BindingList<T> class constructor with IList<T>, which you have.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top