Combobox text changed

  • Thread starter Ivan Jericevich
  • Start date
I

Ivan Jericevich

I am using the Combo box with data binding. with a list of names. When a new
name is selected I am using the Text Changed property to pick up the new ID
with Tag which updates the data for the selected new name.
when the text changes it is supposed to read the desired ID in the tag
property which it does, however it reads the current displayed selection
before the change instead of after the change. How do I get this to work
after the change?
 
C

coco343

I am using the Combo box with data binding. with a list of names. When a new
name is selected I am using the Text Changed property to pick up the new ID
with Tag which updates the data for the selected new name.
when the text changes it is supposed to read the desired ID in the tag
property which it does, however it reads the current displayed selection
before the change instead of after the change. How do I get this to work
after the change?

i sugess you to use the property DisplayMember, for the text,
ValueMember for the ID, and the event SelectedIndexChanged
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top