DataGridViewRowHeaderCell.GetValue(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value of the cell.
protected:
override System::Object ^ GetValue(int rowIndex);
protected override object GetValue (int rowIndex);
protected override object? GetValue (int rowIndex);
override this.GetValue : int -> obj
Protected Overrides Function GetValue (rowIndex As Integer) As Object
Parameters
- rowIndex
- Int32
The index of the cell's parent row.
Returns
The value contained in the DataGridViewRowHeaderCell.
Exceptions
The value of the DataGridView property of the cell is not null
and rowIndex
is less than -1 or greater than or equal to the number of rows in the parent DataGridView.
Remarks
A rowIndex
value of -1 indicates a shared row.
Applies to
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.