Finding items in a listbox

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
 
C

Cor Ligthert

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top