-
Notifications
You must be signed in to change notification settings - Fork 971
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
Visual Styles enabled or disabled, remove differentiation for border style in the left side of the row header when the style would have been set to Outset
#11345
Conversation
Please investigate the failing tests |
@Tanya-Solyanik In my fix, I discovered that the transparency issue stems from the However, this fix conflicts with existing tests, which expect the I believe implementing this fix is crucial for resolving the reported issue and ensuring consistent behavior across different globalization settings. I'd appreciate your input on how best to proceed. |
I agree! |
src/System.Windows.Forms/src/System/Windows/Forms/Controls/DataGridView/DataGridViewRow.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the column border is not visible between the column headers. Could you please open a new issue for that?
Using the same border style OutsetDouble
here can resolve this issue
winforms/src/System.Windows.Forms/src/System/Windows/Forms/Controls/DataGridView/DataGridView.cs
Lines 506 to 513 in f2118b8
if (RightToLeftInternal) | |
{ | |
dgvabs.LeftInternal = DataGridViewAdvancedCellBorderStyle.Outset; | |
} | |
else | |
{ | |
dgvabs.LeftInternal = DataGridViewAdvancedCellBorderStyle.OutsetDouble; | |
} |
1c2322e
to
4618bd8
Compare
@Tanya-Solyanik, Leaf's suggestion fixed it: |
@ricardobossan - please investigate unit test failures |
41427ac
to
397002e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11345 +/- ##
===================================================
+ Coverage 74.29395% 75.03208% +0.73812%
===================================================
Files 3026 3122 +96
Lines 627152 656198 +29046
Branches 46758 51715 +4957
===================================================
+ Hits 465936 492359 +26423
- Misses 157863 160436 +2573
- Partials 3353 3403 +50
Flags with carried forward coverage won't be shown. Click here to find out more. |
LGTM! |
src/System.Windows.Forms/src/System/Windows/Forms/Controls/DataGridView/DataGridViewRow.cs
Outdated
Show resolved
Hide resolved
@Olina-Zhang - could you please test this change when you have time? |
…ightToLeft mode, both with VisualStyles enabled or disabled
397002e
to
9bda02d
Compare
During the review of this PR we identified two issues when RightToLeft is set to Yes and VisualStyles is not enabled:
These issues are not regressions from PR 11345. We will investigate these problems further and work towards a resolution in #11431 . |
Considering Merrie's message on #11431, where it was mentioned that we should not modify anything with In this PR, I have already fixed the missing column between the row header and the DataGridView body for both |
@ricardobossan if you've already got the fix, then I don't mind taking it. Mostly I wanted to make sure we don't invest too much time in Visual Styles Off. |
@merriemcgaw Got it. I'll keep it then. Thank you! |
Changes LGTM, In regard to previous conversation:
It looks like we have gone with a different change in this PR than what was Leaf's suggestion, curious if this still resolves the issue Tanya pointed out here #11345 (comment) |
Fixes #5961
Proposed changes
RightToLeft
, with either visual styles enabled or not, remove differentiation for border style in the left side of the row header when the style would have been set toOutset
Customer Impact
RightToLeft
Regression?
Risk
Screenshots
Before
After
Test methodology
Accessibility testing
Test environment(s)
dotnet 9.0.100-preview.3.24204.13
Microsoft Reviewers: Open in CodeFlow