DataGridViewBand.HeaderCellCore Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 Property HeaderCellCore As DataGridViewHeaderCell

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: