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
base: main
Are you sure you want to change the base?
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% 74.28949% -0.00446%
===================================================
Files 3026 3026
Lines 627152 627152
Branches 46758 46758
===================================================
- Hits 465936 465908 -28
- Misses 157863 157893 +30
+ Partials 3353 3351 -2
Flags with carried forward coverage won't be shown. Click here to find out more. |
LGTM! |
dataGridViewAdvancedBorderStylePlaceholder.LeftInternal = | ||
DataGridView.CellBorderStyle is DataGridViewCellBorderStyle.Raised or DataGridViewCellBorderStyle.RaisedVertical | ||
? DataGridViewAdvancedCellBorderStyle.OutsetPartial | ||
: DataGridViewAdvancedCellBorderStyle.OutsetDouble; | ||
|
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.
dataGridViewAdvancedBorderStylePlaceholder.LeftInternal =
DataGridView.CellBorderStyle is DataGridViewCellBorderStyle.Raised or DataGridViewCellBorderStyle.RaisedVertical
? DataGridViewAdvancedCellBorderStyle.OutsetPartial
: DataGridViewAdvancedCellBorderStyle.OutsetDouble;
@Olina-Zhang - could you please test this change when you have time? |
…ightToLeft mode, both with VisualStyles enabled or disabled
397002e
to
9bda02d
Compare
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