DataGridViewBand.HeaderCellCore DataGridViewBand.HeaderCellCore DataGridViewBand.HeaderCellCore DataGridViewBand.HeaderCellCore Property

定义

获取或设置 DataGridViewBand 的标题单元格。Gets or sets the header cell of the DataGridViewBand.

protected:
 property System::Windows::Forms::DataGridViewHeaderCell ^ HeaderCellCore { System::Windows::Forms::DataGridViewHeaderCell ^ get(); void set(System::Windows::Forms::DataGridViewHeaderCell ^ value); };
[System.ComponentModel.Browsable(false)]
protected System.Windows.Forms.DataGridViewHeaderCell HeaderCellCore { get; set; }
member this.HeaderCellCore : System.Windows.Forms.DataGridViewHeaderCell with get, set
Protected Property HeaderCellCore As DataGridViewHeaderCell

属性值

异常

设置此属性时指定的值不是 DataGridViewRowHeaderCell,并且此 DataGridViewBand 实例的类型为 DataGridViewRowThe specified value when setting this property is not a DataGridViewRowHeaderCell and this DataGridViewBand instance is of type DataGridViewRow.

- 或 --or- 设置此属性时指定的值不是 DataGridViewColumnHeaderCell,并且此 DataGridViewBand 实例的类型为 DataGridViewColumnThe specified value when setting this property is not a DataGridViewColumnHeaderCell and this DataGridViewBand instance is of type DataGridViewColumn.

适用于

另请参阅