HeaderCellCore Property

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)

[BrowsableAttribute(false)]
protected DataGridViewHeaderCell HeaderCellCore { get; set; }

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:
© 2016 Microsoft