Large combo box

  • Thread starter Thread starter Steve Lloyd
  • Start date Start date
S

Steve Lloyd

Hi,

I am setting the datasource to a combobox but there datatable has over
10,000 rows and it is responding rather slowly when setting the datasource
and the display and value members. I filter the choices by filtering the
dataview as they type. Is there a better alternative?

Thanks for any help

Steve.
 
Hi Steve,

Good practice (so I've read!) is to only return the minimal amount of data
from a db that is necessary for your app.

Because you haven't given much info. I have to guess that you are returning
a complete table, ie. SELECT * FROM tblName. You then state that you are
performing filtering on the returned dataset (well, again I am assuming
because you haven't said).

A better approach would be to do a level of 'filtering' BEFORE returning the
dataset. ie. SELECT thisColumn FROM tblName. If you then need other data
associated with the selection you might use a button to get the rest.

This suggestion may be way off base, hence the need perhaps to be slightly
more descriptive so that we can help you out! :-)

Regards, Phil
 

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

Back
Top