DataGridViewCell::SetValue Method (Int32, Object^)
.NET Framework (current version)
Sets the value of the cell.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- rowIndex
-
Type:
System::Int32
The index of the cell's parent row.
- value
-
Type:
System::Object^
The cell value to set.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | rowIndex is less than 0 or greater than or equal to the number of rows in the parent DataGridView. |
| InvalidOperationException | ColumnIndex is less than 0. |
.NET Framework
Available since 2.0
Available since 2.0
Show: