Can you explain a bit more? It should be easy to loop through a datatable from a datasource, and create an array from one or more columns, but what do you mean "check if they match a query string" there are numerous ways to retrieve only the record that matches the query string, so I'm curious what exactly you are trying to do?
smtraber