D
David Veeneman
I'm using the new BindingList generic class in a collection class. For those
not familiar with BindingLists, they are similar to generic ArrayLists, but
they implement the IBindingList interface, which means they support two-way
data binding.
As my class is written, the collection's BindingList is exposed as a
property. That means I have to bind to the property, rather than the
collection, like this:
dataGridView1.DataSource = myCollection.BindingList;
I'd rather bind directly to the collection, rather than to a property, like
this:
dataGridView1.DataSource = myCollection;
Is there a way to accomplish this with a BindingList? Or, is there a base
class that implements IBindingList that I could derive from? Thanks in
advance for your help.
David Veeneman
Foresight Systems
not familiar with BindingLists, they are similar to generic ArrayLists, but
they implement the IBindingList interface, which means they support two-way
data binding.
As my class is written, the collection's BindingList is exposed as a
property. That means I have to bind to the property, rather than the
collection, like this:
dataGridView1.DataSource = myCollection.BindingList;
I'd rather bind directly to the collection, rather than to a property, like
this:
dataGridView1.DataSource = myCollection;
Is there a way to accomplish this with a BindingList? Or, is there a base
class that implements IBindingList that I could derive from? Thanks in
advance for your help.
David Veeneman
Foresight Systems