By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,327 Members | 1,096 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,327 IT Pros & Developers. It's quick & easy.

Simple combobox question on text and selected value

P: n/a
say I have a databound combo box, which allows for text entry still
(DropDownStype = DropDown in this case).

now, If the user doesn't enter manually an item in the data bound list,
nothing should be selected of course, but I want if a user enters an item
that is in the list already, to select it, and only if the item is a
complete match to what they typed to be selected. This is kind of like an
auto complete scenerio, but allows for custom input of data that may or may
not be already in the data table. How would I get it to select the item
already in the list if it is entered? When I enter text that matches the
item, it highlights the item in the data table based list, but the selected
value does not seem to change and does not fire the selected item changed
event. I have another list of data bound to the selected value of this list,
so if I have the number "123a" in the list and i type in 123a it doesnt fire
the changed event and cause my other list to populate, but if i click on
"123a" in the list the other list populates... any solutions to this?
thanks!
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Brian,

You mean that while typing wherever and than in a keyup event you want to
use the combobox findstring and set the index to the result item from that?

http://msdn.microsoft.com/library/de...tringtopic.asp

In this case you would not use the findstringexact

I hope this helps,

Cor

"Brian Henry" <no****@nospam.com> schreef in bericht
news:e4****************@tk2msftngp13.phx.gbl...
say I have a databound combo box, which allows for text entry still
(DropDownStype = DropDown in this case).

now, If the user doesn't enter manually an item in the data bound list,
nothing should be selected of course, but I want if a user enters an item
that is in the list already, to select it, and only if the item is a
complete match to what they typed to be selected. This is kind of like an
auto complete scenerio, but allows for custom input of data that may or
may not be already in the data table. How would I get it to select the
item already in the list if it is entered? When I enter text that matches
the item, it highlights the item in the data table based list, but the
selected value does not seem to change and does not fire the selected item
changed event. I have another list of data bound to the selected value of
this list, so if I have the number "123a" in the list and i type in 123a
it doesnt fire the changed event and cause my other list to populate, but
if i click on "123a" in the list the other list populates... any solutions
to this? thanks!

Nov 21 '05 #2

P: n/a
that helped thanks

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Brian,

You mean that while typing wherever and than in a keyup event you want to
use the combobox findstring and set the index to the result item from
that?

http://msdn.microsoft.com/library/de...tringtopic.asp

In this case you would not use the findstringexact

I hope this helps,

Cor

"Brian Henry" <no****@nospam.com> schreef in bericht
news:e4****************@tk2msftngp13.phx.gbl...
say I have a databound combo box, which allows for text entry still
(DropDownStype = DropDown in this case).

now, If the user doesn't enter manually an item in the data bound list,
nothing should be selected of course, but I want if a user enters an item
that is in the list already, to select it, and only if the item is a
complete match to what they typed to be selected. This is kind of like an
auto complete scenerio, but allows for custom input of data that may or
may not be already in the data table. How would I get it to select the
item already in the list if it is entered? When I enter text that matches
the item, it highlights the item in the data table based list, but the
selected value does not seem to change and does not fire the selected
item changed event. I have another list of data bound to the selected
value of this list, so if I have the number "123a" in the list and i type
in 123a it doesnt fire the changed event and cause my other list to
populate, but if i click on "123a" in the list the other list
populates... any solutions to this? thanks!


Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.