dotnet / dotnet-api-docs

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

Clarify that selectedrows is used like an array #10560

Open alosslessdev opened 2 weeks ago

alosslessdev commented 2 weeks ago

Type of issue

Missing information

Description

Clarify that selectedrows is used like an array. The sxample in the documentation doesn't make it very clear as someone new to windows forms.

it can have something like this: The property DataGridView.SelectedRowsis an array, and each index in this array corresponds to one row that has been selected in the datagridview. This property is accessed similarly to an array, for example, as DataGridView.SelectedRows[0] where 0 is the index of the array.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.datagridview.selectedrows?view=windowsdesktop-8.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Windows.Forms/DataGridView.xml

Document Version Independent Id

54277d13-617f-cda8-33d1-1a9bee718bf6

Article author

@dotnet-bot