dotnet/dotnet-api-docs

DataGridView.RowCount DO NOT exist!

Opened this issue · 4 comments

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.

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.

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

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.

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.