Combolistitems collection question.
I created a class containing to public properties (value) and (text)
I use this class to add items into combobox.items.add(custom class)
So when a user selects something I have the display value and the code value.
My question is I would like to speed the search capability of the combolistitems collection
is there a way to convert the combobox.items collection back to a collection of my custom class?
So I can use a indexOf type function against it instead of doing something like this
For Each c As ComboListItem In Me.ddlb_Fac.Items
If c.value = ls_Hosp Then
Me.ddlb_Fac.SelectedItem = c
End If
Next
Thanks in advance.
0 comments:
Post a Comment