You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did this work in a previous version of Visual Studio and/or previous .NET release?
Yes
Issue description
Assigning a class as data source to a binding source doesn't seems to work within the designer. The data source class can be selected but isn't assigned as data source.
@Olina-Zhang, can you check if this worked in any versions of .NET core?
It can reproduce in all previous .Net versions. Here is the simple repro steps:
Create a Winforms .Net core application
Add a bindingSource control to form designer, go to this control's properties window, and find DataSource property, open its dropdown, click "Add new Object Data Source..." link
In "Add and update object data source" dialog, uncheck "Only show project defined types", check any one of DataSource in table, click OK button
Result: The chosen dataSource is not updated in DataSource property automatically, it needs to choose it manually. See following gif. @r-schaefer is it your problem? I verified your sample, can find the defined dataSource in DataSource dropdown, but need to choose manually. @dreddy-work@KlausLoeffelmann Could you please see if it is a real issue?
Activity
elachlan commentedon Mar 28, 2023
CC: @KlausLoeffelmann (designer + databinding)
dreddy-work commentedon Mar 28, 2023
@Olina-Zhang, can you check if this worked in any versions of .NET core?
Olina-Zhang commentedon Mar 29, 2023
It can reproduce in all previous .Net versions. Here is the simple repro steps:
Result: The chosen dataSource is not updated in DataSource property automatically, it needs to choose it manually. See following gif. @r-schaefer is it your problem? I verified your sample, can find the defined dataSource in DataSource dropdown, but need to choose manually. @dreddy-work @KlausLoeffelmann Could you please see if it is a real issue?

r-schaefer commentedon Mar 29, 2023
Yes, I can confirm that this is the problem I reported (Meanwhile I also discovered the solution to manually add the data source).