"Object reference not set to an instance of an object" exception pops up after clicked the DataGridViewCell content #12692
Labels
area-Controls-DataGridView
💥 regression-release
Regression from a public release
untriaged
The team needs to look at this issue in the next triage
.NET version
.NET SDK 10.0.100-alpha.1.24627,3
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
The issue can reproduce on latest .NET SDK 10.0 and 9.0, can't reproduce on .NET 8.0
Issue description
Actual Results:
Object reference not set to an instance of an object exception pops up after clicked the DataGridViewCell content, and the DGV working well if comment the below code line: in LoadData method
DataGridView1.Rows.Clear();
Expected Results:
Call Stack
CallStack.txt
Debug info
DebugInfo.txt
Steps to reproduce
Or using the ScratchProject.zip in the dotnet/winforms repo
Original the FeedBack: https://developercommunity.visualstudio.com/t/NullReferenceException-in-DataGridView/10819893
The text was updated successfully, but these errors were encountered: