Use ComboBox for Navigation

J

jehugaleahsa

Hello:

I would like to use a Combo Box for navigation purposes in one our
Windows Forms. I have the Combo Box and the controls bound to the same
BindingSource. When the user selects a value from the drop down, I
would like it to move the binding source to the item with the selected
value. Make sense?

Is this something that is built-in, or will I have to write some code
behind?

Thanks,
Travis
 
J

jehugaleahsa

Hello:

I would like to use a Combo Box for navigation purposes in one our
Windows Forms. I have the Combo Box and the controls bound to the same
BindingSource. When the user selects a value from the drop down, I
would like it to move the binding source to the item with the selected
value. Make sense?

Is this something that is built-in, or will I have to write some code
behind?

Thanks,
Travis

Actually, this works right out of the box. Just make sure the drop
down list's binding source is the same that is used for the other
controls. Bind to SelectedText. I made sure to set my data source
value member to the key column of my data, since I had duplicate
display members.

Thanks,
Travis
 

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