Skip to content

Several ComboBox controls with one DataSource object affect each other on change #4627

Answered by weltkante
shakir-timur asked this question in Q&A
Discussion options

You must be logged in to vote

Both your linked discussions have the correct solutions, I don't believe there is a bug.

When you are assigning lists directly as data source WinForms will track the current selection for you, to support scenarios like master/detail views where the controls of the detail area need to respect the current selection of the master list. Obviously this can only work when the binding system coordinates between controls.

If you want separate selection logic you should use separate BindingSources instead of directly binding against a list. WinForms is a strongly designer-oriented framework so the "expected" way to do this in the designer is to place a BindingSource in the designer for each "selec…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RussKie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4624 on March 01, 2021 23:58.