-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In .NET 8 WinForms, using the PropertyGrid at runtime, the DataSource property of the ComboBox appears disabled. #12560
Comments
@Olina-Zhang can your team please test and confirm? |
The issue can reproduce from .NET Core 3.1 to 8.0 for the controls which support the DataSource property, such as ComBobox, DataGridView, ListBox, BingingSource etc. cannot reproduce NET 9.0 & latest 10.0 as below screenshot. but for .NET 9.0 & 10.0, the "Add new Object Data Source..." function cannot be used. |
@Zheng-Li01 Is there a designer issue for this? |
Sorry about this, have correct my test results. please have a check. |
Please solve this issue in .NET8 |
Is there any workaround for that ?? and when we expect the resolution in .NET8 |
I am not entirely sure what folks would expect here. Please note that every functionality which is ultimately shown in the Property Grid is controlled by the respective TypeEditors. When we needed a different approach in .NET 6+, we rerouted the path to get the DataSource's TypeEditor. That is always an option to do that, if not - for different domain-specific scenarios - a necessity. So, I did not watch the changes around this. But going forward, we could have a StringEditor for any DataSource property at best. If you want to have something specific, it's comparatively easy to do that. Here are a couple of resources to read on from. This is all very well documented! https://learn.microsoft.com/dotnet/api/system.drawing.design.uitypeeditor?view=windowsdesktop-9.0 What's important is: If you need more background, why this works that way, take a look at this blog post I wrote quite a while ago: https://devblogs.microsoft.com/dotnet/custom-controls-for-winforms-out-of-process-designer/ If you have additional questions, or if I have missed anything around this, please follow up. Thanks! |
Closing this as won't fix because it's not a bug. |
In .NET 8 WinForms, the DataSource property of the ComboBox appears disabled in the PropertyGrid control.
The text was updated successfully, but these errors were encountered: