469,602 Members | 1,713 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,602 developers. It's quick & easy.

ComboBox repopulation on SelectedIndexChanged

hi frnds,
I had created an windows application project in that i like to use a drop-down combobox for both entering a text and also for retrive. what i need to do.
Dec 16 '08 #1
4 1193
221 Expert 100+
When you say you want to use it for entering text, do you want to be able to add a completely new value to the drop-down list, or just type in text to find an item that is already in the list?
Dec 16 '08 #2
hi frnd,
suppose we are entering an employee id (primary key) in the combo box, thus entered text is to be insert in the database and as well as the entered text is to be add to that combo-box list.
While we are selecting an id avail in that list and It need to retrive data's from the database belonging to it (like Autopostback option in ASP.net).
How to do, Please Guide me.......
Dec 16 '08 #3
221 Expert 100+
Well, you can hook up to the SelectedValueChanged event and put your code in there to automatically reload data from the database with the current ID number. You could also add your processing code there for adding new items.
Dec 16 '08 #4
1,754 Expert 1GB
You should use textbox for entering data instead of combo.
Dec 22 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by ScottO | last post: by
reply views Thread by Doug | last post: by
2 posts views Thread by blue_nirvana | last post: by
reply views Thread by peter78 | last post: by
6 posts views Thread by tbrown | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.