Friday, 27 September 2013

BindingList of Interface Type

BindingList of Interface Type

Working with VB.NET.
I've been having a bit of difficulty with data bindings. I have a
BindingList(of IDataItem), the list is populated with two class types that
both implement the IDataItem interface but only one implements the
INotifyPropertyChange interface. As you can guess I am using a
DataGridView control bound to the BindingList to display the data. I am
having a problem where any property changes make behind the scenes are not
being reflected by the DataGridView control unless the control is redrawn.
Any suggestions? Do both classes need to implement the
INotifyPropertyChange interface? Does the BindingList not work with an
interface type, must a class type be used?

No comments:

Post a Comment