Windows Combobox Sort problem

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

Guest

Greetings all
I have a question about the combobox in VB Net windows. I have a combobox whos datasource is a datatable object with some 7000 records sorted by a number. At runtime, when a user has the combolist as the focus, then starts typing a number, it ONLY starts to scroll on the first number typed. I would like it to sort to at least 3 deep. With that many records in the dropdown, hitting a "6" will start the 6 list, but that needs to be expanded to say "6","5" for 6500. i dont know if Im in the right place, but any help would be great. Again, a WINDOWS FORM .NET 2003, not a WEB form combobox. I am working in Visual studio.NET 2003. Thanks Al
-eri
 
Take a look at this. I think it will do what you are trying to achieve...

http://www.vbcity.com/forums/faq.asp?fid=15&cat=ListBox/ComboBox&#TID29498

Gary

Eric said:
Greetings all,
I have a question about the combobox in VB Net windows. I have a
combobox whos datasource is a datatable object with some 7000 records sorted
by a number. At runtime, when a user has the combolist as the focus, then
starts typing a number, it ONLY starts to scroll on the first number typed.
I would like it to sort to at least 3 deep. With that many records in the
dropdown, hitting a "6" will start the 6 list, but that needs to be expanded
to say "6","5" for 6500. i dont know if Im in the right place, but any help
would be great. Again, a WINDOWS FORM .NET 2003, not a WEB form combobox. I
am working in Visual studio.NET 2003. Thanks All
 
I haven't looked at Gary's link in detail, but it certainly looks like what
you're asking for. But...

A 7000 item combobox? Are you trying to make your users suffer? Maybe do
it as a new form with some more usable method of filtering the list?


Eric said:
Greetings all,
I have a question about the combobox in VB Net windows. I have a
combobox whos datasource is a datatable object with some 7000 records sorted
by a number. At runtime, when a user has the combolist as the focus, then
starts typing a number, it ONLY starts to scroll on the first number typed.
I would like it to sort to at least 3 deep. With that many records in the
dropdown, hitting a "6" will start the 6 list, but that needs to be expanded
to say "6","5" for 6500. i dont know if Im in the right place, but any help
would be great. Again, a WINDOWS FORM .NET 2003, not a WEB form combobox. I
am working in Visual studio.NET 2003. Thanks All
 
Hardcoding this box stops the dreaded SQL injection so common now on the NET. Im just trying to prevent a disaster
 
A 7000 item combobox? Are you trying to make your users suffer? Maybe do
it as a new form with some more usable method of filtering the list?

This a good idea. I suspect the list might be the names of all the
women with whom Bill Clinton has had extramarital affairs.... In which
i'd suggest presorting them by hair colour.. brunettes, blondes, etc

;)

hth

Richard
 
Gary, that link to the example was dead on. Thanks a million. Great work. Thanks to all people who looked into this for m
-Eric
 
Back
Top