dotnet / dotnet-api-docs

.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
https://docs.microsoft.com/dotnet/api/
Other
679 stars 1.52k forks source link

DataGridView.RowCount DO NOT exist! #9786

Open AP2020C opened 3 months ago

AP2020C commented 3 months ago

The official documentation claims false! With .NET Framework 4.8 RowCount does not exist! Copilot says it could be a problem in my development environment but, aside from being a downloader (I'm not sure I'm rendering the correct meaning in English), visual studio is up to date and I created the test project specifically for this feature.

dotnet-issue-labeler[bot] commented 3 months ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

AP2020C commented 3 months ago

After careful analysis I found that rowcount does exist, however, it is not shown by the intellisense. Fix please

svick commented 3 months ago

I believe that's because that property is marked as [EditorBrowsable(EditorBrowsableState.Advanced)]. You should be able to see it if you uncheck the "Hide advanced members" setting in Tools | Options | Text Editor | C# in VS.

Though it's not clear to me why this particular member is hidden.

AP2020C commented 2 months ago

I found "Hide advanced members" and it is already disabled. In fact, in VB it is grayed out. I have an entry that I think I can translate as "automatic member list." It was on and is now off, but still Rowcount is not shown, and actually I have to press Ctrl+Space to get intellisense, even after restarting VS.