DataGridViewBand::HeaderCellCore Property
.NET Framework (current version)
Gets or sets the header cell of the DataGridViewBand.
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
Available since 2.0
Show: