I have a collection of custom classes that inherits CollectionBase and implements IBindingList. I set the IBindingList's SupportsSearching property to return true. I have a property called "projname" in the class. The second class in the collection has the projname property set to "Test Project 2" .
I make the collection the datasource of a bindingsource and try the find method....
....the return value (pos_index) is always 0 (zero)
Has anyone else had this problem when searching a collection of custom classes
I make the collection the datasource of a bindingsource and try the find method....
VB.NET:
Dim pos_index AsInteger = bindingsourceProjList.Find("projname", "Test Project 2")
If pos_index <> -1 Then
bindingsourceProjList.Position = pos_index
EndIf
[\code]
....the return value (pos_index) is always 0 (zero)
Has anyone else had this problem when searching a collection of custom classes
Last edited by a moderator: