You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When VisualStylesMode is set to NET11, the embedded ComboBox editor used by DataGridViewComboBoxCell exhibits several layout/rendering issues while editing:
The rounded drop-down button is shifted to the left instead of aligning with the right edge of the editor.
An unexpected vertical scrollbar appears to the right of the drop-down button.
The drop-down list is slightly offset from the editing control instead of opening flush beneath it.
These issues make the embedded ComboBox editor appear misaligned and visually inconsistent.
DataGridViewComboBoxIssue.mp4
Steps to reproduce
Create a new WinForms application targeting .NET 11.
Set the Form's VisualStylesMode to NET11.
Add a DataGridView to the Form.
Add a DataGridViewComboBoxColumn and populate it with several items.
Run the application.
Click a cell in the DataGridViewComboBoxColumn to enter edit mode.
.NET version
.NET 11.0.100-preview.7.26365.114 + Private dlls built from Net11/Integration-3 branch of https://github.com/KlausLoeffelmann/winforms repo
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Not support, new feature of #14768
Issue description
When
VisualStylesModeis set toNET11, the embeddedComboBoxeditor used byDataGridViewComboBoxCellexhibits several layout/rendering issues while editing:These issues make the embedded ComboBox editor appear misaligned and visually inconsistent.
DataGridViewComboBoxIssue.mp4
Steps to reproduce
VisualStylesModetoNET11.DataGridViewto the Form.DataGridViewComboBoxColumnand populate it with several items.DataGridViewComboBoxColumnto enter edit mode.