Question Autocomplete sequence

Frankvk

New member
Joined
May 20, 2009
Messages
2
Programming Experience
10+
We're using the Autocomplete functionality for some textboxes.
We populate the AutoCompleteCustomSource with data from a database query using a datareader loop.

The data in the query is sorted by 'recently used', the most recently used entries are at the top.

Let's say the sequence op the AutoCompleteCustomSource is

'AM1900'
'AF2000'
'AD1950'

After typing an 'A' in the textbox, I would expect the Suggested (or Appended) value to be 'AM1900'

The suggested value however is always the first item from an alphabetically sorted AutoCompleteCustomSource list (i.e. 'AD1950')

Does anyone know how I can influence this behaviour?

Regards, Frank
 
Thanks for your reply. I guess so. :(

It would be more useful if we had the choice. One could always choose to hook up a alphabetically sorted array if speed is a big issue.

Regards, Frank
 

Latest posts

Back
Top