DataGridViewRowCollection::Item Property (Int32)
.NET Framework (current version)
Gets the DataGridViewRow 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 zero-based index of the DataGridViewRow to get.
Property Value
Type: System.Windows.Forms::DataGridViewRow^The DataGridViewRow at the specified index. Accessing a DataGridViewRow with this indexer causes the row to become unshared. To keep the row shared, use the SharedRow method. For more information, see Best Practices for Scaling the Windows Forms DataGridView Control.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException |
.NET Framework
Available since 2.0
Available since 2.0
Show: