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

定义

设置单元格的值。Sets the value of the cell.

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

参数

rowIndex
Int32 Int32 Int32 Int32

该单元格的父行索引。The index of the cell's parent row.

value
Object Object Object Object

要设置的单元格值。The cell value to set.

返回

如果值已设置,则为 true;否则为 falsetrue if the value has been set; otherwise false.

异常

适用于

另请参阅