DataGridViewBand::HeaderCellCore Property

 

Gets or sets the header cell of the DataGridViewBand.

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

protected:
[BrowsableAttribute(false)]
property DataGridViewHeaderCell^ HeaderCellCore {
	DataGridViewHeaderCell^ get();
	void set(DataGridViewHeaderCell^ value);
}

Property Value

Type: System.Windows.Forms::DataGridViewHeaderCell^

A DataGridViewHeaderCell representing the header cell of the DataGridViewBand.

Exception Condition
ArgumentException

The specified value when setting this property is not a DataGridViewRowHeaderCell and this DataGridViewBand instance is of type DataGridViewRow.

-or-

The specified value when setting this property is not a DataGridViewColumnHeaderCell and this DataGridViewBand instance is of type DataGridViewColumn.

.NET Framework
Available since 2.0
Return to top
Show: