DataGridViewColumnHeaderCell::SetValue Method (Int32, Object^)

 

Sets the value of the cell.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected:
virtual bool SetValue(
	int rowIndex,
	Object^ value
) override

Parameters

rowIndex
Type: System::Int32

The index of the cell's parent row.

value
Type: System::Object^

The cell value to set.

Return Value

Type: System::Boolean

true if the value has been set; otherwise false.

Exception Condition
ArgumentOutOfRangeException

rowIndex is not -1.

.NET Framework
Available since 2.0
Return to top
Show: