Skip to content
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

"Object reference not set to an instance of an object" exception pops up after clicked the DataGridViewCell content #12692

Open
Zheng-Li01 opened this issue Dec 30, 2024 · 0 comments
Labels
area-Controls-DataGridView 💥 regression-release Regression from a public release untriaged The team needs to look at this issue in the next triage

Comments

@Zheng-Li01
Copy link
Member

.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();

Image

Expected Results:
Image

Call Stack
CallStack.txt
Image

Debug info
DebugInfo.txt
Image

Steps to reproduce

  1. Open attached application FBApplicationTest.zip
  2. Build & run the application, then click the DataGridViewCell content to observe the results

Or using the ScratchProject.zip in the dotnet/winforms repo

Original the FeedBack: https://developercommunity.visualstudio.com/t/NullReferenceException-in-DataGridView/10819893

@Zheng-Li01 Zheng-Li01 added 💥 regression-release Regression from a public release area-Controls-DataGridView untriaged The team needs to look at this issue in the next triage labels Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Controls-DataGridView 💥 regression-release Regression from a public release untriaged The team needs to look at this issue in the next triage
Projects
None yet
Development

No branches or pull requests

1 participant