Repository navigation
Fix visibility logic for addNewPanel in DesignBindingPicker to use _dataSourceProviderService - #14133
Merged
LeafShi1 merged 2 commits intoAug 31, 2026
Conversation
LeafShi1
requested review from
Shyam-Gupta,
SimonZhao888,
Copilot and
ricardobossan
December 11, 2025 10:27
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes the visibility logic for the _addNewPanel in the DesignBindingPicker control to properly respect the data source provider service's capabilities. The change restores behavior that aligns with .NET Framework by ensuring the "Add new Object Data Source" panel only appears when the data source provider service is available and supports adding new data sources.
Key Changes
- Re-enabled the previously commented-out visibility logic for _addNewPanel in the Pick method
- Updated the variable reference from the non-existent
dspSvcto the correct field_dataSourceProviderService
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #14133 +/- ##
===================================================
+ Coverage 76.01271% 77.16231% +1.14960%
===================================================
Files 3279 3279
Lines 645325 645328 +3
Branches 47720 47721 +1
===================================================
+ Hits 490529 497950 +7421
+ Misses 145491 143695 -1796
+ Partials 9305 3683 -5622
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
SimonZhao888
previously approved these changes
Dec 12, 2025
abineshPalanisamy
pushed a commit
to abineshPalanisamy/winforms
that referenced
this pull request
Sep 3, 2026
…ataSourceProviderService (dotnet#14133) ## Proposed changes - Re-enable the visibility logic for _addNewPanel in DesignBindingPicker <!-- We are in TELL-MODE the following section must be completed --> ## Customer Impact - Previously, the visibility logic for _addNewPanel was commented out(dotnet#9677), causing the panel to remain always visible, regardless of whether adding new data sources was supported. - This behavior diverged from .NET Framework, where visibility depends on the data source provider service and its capability to add new data sources. - The incorrect logic could mislead developers by showing an option that is not actually supported at runtime. - Restoring the original conditional logic ensures consistency with .NET Framework and improves design-time accuracy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #14132
Proposed changes
Customer Impact
Regression?
Risk
Screenshots
Before
The "Add new Object Data Source" link & description shouldn't display in the DropDown panel for the DataSource & DisplayMember properties in the propertiGird
After
Test methodology
Test environment(s)
Microsoft Reviewers: Open in CodeFlow