2 writes to HeaderCell
System.Windows.Forms (2)
winforms\Managed\System\WinForms\DataGridViewBand.cs (1)
406
value.OwningRow.
HeaderCell
= null;
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
1144
dataGridViewRow.
HeaderCell
= (DataGridViewRowHeaderCell) this.HeaderCell.Clone();
56 references to HeaderCell
System.Windows.Forms (56)
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (1)
362
result[i] = this.owner.Rows[i].
HeaderCell
.AccessibilityObject;
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
5595
return new UnsafeNativeMethods.IRawElementProviderSimple[1] { this.owner.OwningRow.
HeaderCell
.AccessibilityObject };
winforms\Managed\System\WinForms\DataGridViewMethods.cs (26)
399
dataGridViewCell = this.Rows.SharedRow(rowIndex).
HeaderCell
;
477
dataGridViewCell = this.Rows.SharedRow(rowIndex).
HeaderCell
;
2034
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndex).
HeaderCell
.GetPreferredWidth(rowIndex, this.Rows.SharedRow(rowIndex).GetHeight(rowIndex)));
2038
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndex).
HeaderCell
.GetPreferredSize(rowIndex).Width);
2054
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.
HeaderCell
.GetPreferredWidth(rowIndex, dataGridViewRowHeight));
2058
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.
HeaderCell
.GetPreferredSize(rowIndex).Width);
2073
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.
HeaderCell
.GetPreferredWidth(rowIndex, dataGridViewRowHeight));
2077
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.
HeaderCell
.GetPreferredSize(rowIndex).Width);
2092
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndex).
HeaderCell
.GetPreferredWidth(rowIndex, this.Rows.SharedRow(rowIndex).GetHeight(rowIndex)));
2096
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndex).
HeaderCell
.GetPreferredSize(rowIndex).Width);
2207
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndexTmp).
HeaderCell
.GetPreferredWidth(rowIndexTmp, this.Rows.SharedRow(rowIndexTmp).GetHeight(rowIndexTmp)));
2211
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndexTmp).
HeaderCell
.GetPreferredSize(rowIndexTmp).Width);
2227
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.
HeaderCell
.GetPreferredWidth(rowIndexTmp, dataGridViewRowHeight));
2231
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.
HeaderCell
.GetPreferredSize(rowIndexTmp).Width);
2246
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.
HeaderCell
.GetPreferredWidth(rowIndexTmp, dataGridViewRowHeight));
2250
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.
HeaderCell
.GetPreferredSize(rowIndexTmp).Width);
2265
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndexTmp).
HeaderCell
.GetPreferredWidth(rowIndexTmp, this.Rows.SharedRow(rowIndexTmp).GetHeight(rowIndexTmp)));
2269
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndexTmp).
HeaderCell
.GetPreferredSize(rowIndexTmp).Width);
7193
return dataGridViewRow.
HeaderCell
;
7414
cellContent = this.Rows.SharedRow(rowIndex).
HeaderCell
.GetClipboardContentInternal(rowIndex,
7433
cellContent = this.Rows.SharedRow(rowIndex).
HeaderCell
.GetClipboardContentInternal(rowIndex,
7686
cellContent = this.Rows.SharedRow(rowIndex).
HeaderCell
.GetClipboardContentInternal(rowIndex,
7705
cellContent = this.Rows.SharedRow(rowIndex).
HeaderCell
.GetClipboardContentInternal(rowIndex,
8138
cellContent = this.Rows.SharedRow(rowIndex).
HeaderCell
.GetClipboardContentInternal(rowIndex,
8155
cellContent = this.Rows.SharedRow(rowIndex).
HeaderCell
.GetClipboardContentInternal(rowIndex,
29880
dataGridViewCell = this.Rows.SharedRow(hti.row).
HeaderCell
;
winforms\Managed\System\WinForms\DataGridViewRow.cs (8)
685
if (this.
HeaderCell
.HasStyle)
687
cellStyle = this.
HeaderCell
.Style;
1144
dataGridViewRow.HeaderCell = (DataGridViewRowHeaderCell) this.
HeaderCell
.Clone();
1250
this.
HeaderCell
.DataGridViewInternal = null;
1408
preferredRowThickness = Math.Max(preferredRowThickness, this.
HeaderCell
.GetPreferredHeight(rowIndex, this.DataGridView.RowHeadersWidth));
1412
preferredRowThickness = Math.Max(preferredRowThickness, this.
HeaderCell
.GetPreferredSize(rowIndex).Height);
1815
this.
HeaderCell
.PaintWork(graphics,
2173
return this.owner.
HeaderCell
.AccessibilityObject;
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (20)
292
newDataGridViewRow.
HeaderCell
.DataGridViewInternal = dataGridViewRow.DataGridView;
293
newDataGridViewRow.
HeaderCell
.OwningRowInternal = newDataGridViewRow;
396
dataGridViewRow.
HeaderCell
.DataGridViewInternal = this.DataGridView;
397
dataGridViewRow.
HeaderCell
.OwningRowInternal = dataGridViewRow;
530
rowTemplate.
HeaderCell
.DataGridViewInternal = this.dataGridView;
531
rowTemplate.
HeaderCell
.OwningRowInternal = rowTemplate;
599
dataGridViewRow.
HeaderCell
.DataGridViewInternal = this.DataGridView;
600
dataGridViewRow.
HeaderCell
.OwningRowInternal = dataGridViewRow;
838
dataGridViewRow.
HeaderCell
.DataGridViewInternal = this.dataGridView;
839
dataGridViewRow.
HeaderCell
.OwningRowInternal = dataGridViewRow;
907
dataGridViewRow.
HeaderCell
.DataGridViewInternal = this.dataGridView;
908
dataGridViewRow.
HeaderCell
.OwningRowInternal = dataGridViewRow;
1573
rowTemplate.
HeaderCell
.DataGridViewInternal = this.dataGridView;
1574
rowTemplate.
HeaderCell
.OwningRowInternal = rowTemplate;
1664
dataGridViewRow.
HeaderCell
.DataGridViewInternal = this.DataGridView;
1665
dataGridViewRow.
HeaderCell
.OwningRowInternal = dataGridViewRow;
1852
dataGridViewRow.
HeaderCell
.DataGridViewInternal = this.dataGridView;
1853
dataGridViewRow.
HeaderCell
.OwningRowInternal = dataGridViewRow;
1938
dataGridViewRow.
HeaderCell
.DataGridViewInternal = this.DataGridView;
1939
dataGridViewRow.
HeaderCell
.OwningRowInternal = dataGridViewRow;