DataGridViewCell::RowIndex Property
.NET Framework (current version)
Gets the index of the cell's parent row.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System::Int32The index of the row that contains the cell; -1 if there is no owning row.
When the RowIndex property returns -1, the cell is either a column header, or the cell's row is shared.
For more information about row sharing, see Best Practices for Scaling the Windows Forms DataGridView Control.
.NET Framework
Available since 2.0
Available since 2.0
Show: