DataGridViewSelectedRowCollection::Item Property (Int32)
.NET Framework (current version)
Gets the row at the specified index.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property DataGridViewRow^ default[ int index ] { DataGridViewRow^ get(int index); }
Parameters
- index
-
Type:
System::Int32
The index of the DataGridViewRow in the DataGridViewSelectedRowCollection.
Property Value
Type: System.Windows.Forms::DataGridViewRow^The DataGridViewRow at the current index.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is less than 0. -or- index is equal to or greater than the number of rows in the collection. |
.NET Framework
Available since 2.0
Available since 2.0
Show: