Finding items in a listbox

  • Thread starter Thread starter Ed Staffin
  • Start date Start date
E

Ed Staffin

I know about findstring and findstringexact, but what if I
want to find an item based on value instead of text? Is my
only option to iterate through the collection?
For example, if I have a FieldName and FieldId table as my
datasource and I set the displaymember to FieldName and
valuemember to FieldId, how could I find an item via the
FieldId?

Thanks ... Ed
 
HI Ed,

You are using a datasource, what is that, finding something in a datasource
using a dataview.rowfilter , a datatable.select or if you have a key a
datarowcollection.find is very easy.

I hope this helps, and when not, reply?

Cor
 
Back
Top