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
Click the DataGridView button to open the DataGridView dialog
Click the Change DGV font button
Click the Column2 header
Call Stack:
System.ArgumentException
HResult=0x80070057
Message=Object must be of type String.
Source=System.Private.CoreLib
StackTrace:
at System.String.CompareTo(Object value)
at System.Collections.Comparer.Compare(Object a, Object b)
at System.Windows.Forms.DataGridViewRowCollection.RowComparer.CompareObjects(Object value1, Object value2, Int32 rowIndex1, Int32 rowIndex2) in C:\Users\v-olzhan\source\repos\winforms\src\System.Windows.Forms\System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.RowComparer.cs:line 114
.NET version
main branch of 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+?
Repro in release/10.0, release/9.0, release/8.0 branch
Issue description
The WinformsControlTest project exited when clicking Column2 header after clicked the Change DGV font button
CallStack.mp4
Steps to reproduce
Test the sample app: WinformsControlTest in Winforms repo
Call Stack: