Open r-schaefer opened 1 year ago
CC: @KlausLoeffelmann (designer + databinding)
@Olina-Zhang, can you check if this worked in any versions of .NET core?
@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:
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?
Yes, I can confirm that this is the problem I reported (Meanwhile I also discovered the solution to manually add the data source).
Environment
Visual Studio 2022 - 17.5.3
.NET version
7.0
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.
see attached sample project and screenshots WinFormsAppTestBindingSource.zip
Steps to reproduce
Create a new winform
drop / drop a bindingsource to the form
create a simple class with one property / member
open datasource of the bindingsource property and assign the class with "Add new object data source"
select the simple class and press ok
expected: the class is assigned as data source
current behaviour: the class isn't assigned
Diagnostics
No response