is there any way to have a textbox do an autocomplete without binding it to a datafield?
Printable View
is there any way to have a textbox do an autocomplete without binding it to a datafield?
someone HAS to know if this is at least possible or not!!!
It's possible. You might want to take a look at the code for combobox autocomplete and adapt it to your needs. You, of course, need an array, list, combobox, collection, dictionary, etc., something that you can store your values in. And probably something that can be sorted.
Hope this gives you an idea on how to accomplish this, or a means to an ends.
Can this be adapted to work with a dataset/dataview?
for the textbox...
depending on how many elements you could possibly complete, it would be faily simple. Just create an array of all possible completions, and in the "txtBox_Change" event, just have it search through the array everytime something happens in the box.