Listbox filter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, My application has a form with a listbox which can show upto about 800
items. What is the best way to filter the listbox items? Is there some sort
of A-Z control where pressing the B button would only show items in the
listbox begining with B.

Thanks
 
Try ordering the dataset and caching it, then bind the data into the listbox
using the rowfilter property and suffer the consequence of round trip on a
trapped keypress event. At least that way you will only load the releent
records - thought it might be just as easy to only select the data based on
a like B selection

The alternative is to lod some form of javascritp array or client side xml
data island and work with that.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 

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