DataGridViewCell.SetValue(Int32, Object) DataGridViewCell.SetValue(Int32, Object) DataGridViewCell.SetValue(Int32, Object) DataGridViewCell.SetValue(Int32, Object) Method

Definición

Establece el valor de la celda.Sets the value of the cell.

protected:
 virtual bool SetValue(int rowIndex, System::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

Parámetros

rowIndex
Int32 Int32 Int32 Int32

El índice de la fila primaria de la celda.The index of the cell's parent row.

value
Object Object Object Object

Valor de celda que se va a establecer.The cell value to set.

Devoluciones

true si se ha establecido el valor; de lo contrario, false.true if the value has been set; otherwise, false.

Excepciones

rowIndex es menor que 0, o mayor o igual que el número de filas del control DataGridView primario.rowIndex is less than 0 or greater than or equal to the number of rows in the parent DataGridView.

Se aplica a

Consulte también: