Oh and one quick way to make a class bindable is just adding this:
VB Code:
Inplements System.ComponentModel.IListSource Private ReadOnly Property ContainsListCollection() As Boolean Implements IListSource.ContainsListCollection Get Return False End Get End Property Public Function GetList() As IList Implements IListSource.GetList Dim al As New ArrayList() al.Add(Me) Return al End Function
There are also some other interfaces that inherit from IList or IListSource that you can use that provide more features like IBindingList.




Reply With Quote