Muokkaa

Jaa


DataGridViewCell.SetValue(Int32, Object) Method

Definition

Sets the value of the cell.

protected:
 virtual bool SetValue(int rowIndex, System::Object ^ value);
protected virtual bool SetValue (int rowIndex, object value);
protected virtual bool SetValue (int rowIndex, object? value);
abstract member SetValue : int * obj -> bool
override this.SetValue : int * obj -> bool
Protected Overridable Function SetValue (rowIndex As Integer, value As Object) As Boolean

Parameters

rowIndex
Int32

The index of the cell's parent row.

value
Object

The cell value to set.

Returns

true if the value has been set; otherwise, false.

Exceptions

rowIndex is less than 0 or greater than or equal to the number of rows in the parent DataGridView.

Applies to

See also