4 types derived from DataGridViewHeaderCell
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
12public partial class DataGridViewColumnHeaderCell : DataGridViewHeaderCell
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
12public partial class DataGridViewRowHeaderCell : DataGridViewHeaderCell
System.Windows.Forms.Tests (2)
System\Windows\Forms\DataGridViewHeaderCellTests.cs (2)
4678private class CustomStateDataGridViewHeaderCell : DataGridViewHeaderCell 4685public class SubDataGridViewHeaderCell : DataGridViewHeaderCell
113 instantiations of DataGridViewHeaderCell
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
196dataGridViewCell = new DataGridViewHeaderCell();
System.Windows.Forms.Tests (112)
System\Windows\Forms\DataGridViewCellTests.cs (1)
4294using DataGridViewHeaderCell cellTemplate = new();
System\Windows\Forms\DataGridViewHeaderCellTests.cs (106)
122using DataGridViewHeaderCell cellTemplate = new(); 147using DataGridViewHeaderCell cellTemplate = new(); 170using DataGridViewHeaderCell cellTemplate = new(); 204using DataGridViewHeaderCell cell = new(); 243using DataGridViewHeaderCell cellTemplate = new(); 276using DataGridViewHeaderCell cellTemplate = new(); 312using DataGridViewHeaderCell cellTemplate = new(); 346using DataGridViewHeaderCell cellTemplate = new(); 381using DataGridViewHeaderCell cell = new(); 411using DataGridViewHeaderCell cellTemplate = new(); 495using DataGridViewHeaderCell cellTemplate = new(); 517using DataGridViewHeaderCell cell = new(); 532using DataGridViewHeaderCell cellTemplate = new(); 568using DataGridViewHeaderCell cell = new(); 617using DataGridViewHeaderCell cellTemplate = new(); 639using DataGridViewHeaderCell cellTemplate = new(); 662using DataGridViewHeaderCell cellTemplate = new(); 685using DataGridViewHeaderCell cell = new(); 702using DataGridViewHeaderCell cellTemplate = new(); 722using DataGridViewHeaderCell cell = new(); 732using DataGridViewHeaderCell cell = new(); 765using DataGridViewHeaderCell cellTemplate = new(); 782using DataGridViewHeaderCell cellTemplate = new(); 802using DataGridViewHeaderCell cellTemplate = new(); 821using DataGridViewHeaderCell cell = new(); 835using DataGridViewHeaderCell cellTemplate = new(); 871using DataGridViewHeaderCell cell = new(); 927using DataGridViewHeaderCell cellTemplate = new(); 951using DataGridViewHeaderCell cellTemplate = new(); 993using DataGridViewHeaderCell cellTemplate = new(); 1030using DataGridViewHeaderCell cellTemplate = new(); 1041using DataGridViewHeaderCell cell = new(); 1051using DataGridViewHeaderCell cellTemplate = new(); 1083using DataGridViewHeaderCell cell = new(); 1113using DataGridViewHeaderCell cellTemplate = new(); 1135using DataGridViewHeaderCell cellTemplate = new(); 1158using DataGridViewHeaderCell cellTemplate = new(); 1177using DataGridViewHeaderCell cell = new(); 1190using DataGridViewHeaderCell cellTemplate = new(); 1207using DataGridViewHeaderCell cell = new(); 1217using DataGridViewHeaderCell cell = new(); 1252using DataGridViewHeaderCell cellTemplate = new(); 1270using DataGridViewHeaderCell cellTemplate = new(); 1290using DataGridViewHeaderCell cellTemplate = new(); 1309using DataGridViewHeaderCell cell = new(); 1324using DataGridViewHeaderCell cellTemplate = new(); 1342using DataGridViewHeaderCell cell = new(); 1373using DataGridViewHeaderCell cellTemplate = new(); 1390using DataGridViewHeaderCell cellTemplate = new(); 1409using DataGridViewHeaderCell cellTemplate = new(); 1426using DataGridViewHeaderCell cell = new(); 1441using DataGridViewHeaderCell cell = new() 1460using DataGridViewHeaderCell cell = new() 1481using DataGridViewHeaderCell cell = new(); 1501using DataGridViewHeaderCell cell = new() 1608using DataGridViewHeaderCell cellTemplate = new(); 1635using DataGridViewHeaderCell cellTemplate = new(); 1663using DataGridViewHeaderCell cellTemplate = new(); 1692using DataGridViewHeaderCell cellTemplate = new(); 1722using DataGridViewHeaderCell cellTemplate = new(); 1750using DataGridViewHeaderCell cellTemplate = new(); 1779using DataGridViewHeaderCell cell = new() 1804using DataGridViewHeaderCell cell = new() 1846using DataGridViewHeaderCell cell = new(); 1898using DataGridViewHeaderCell cellTemplate = new(); 1923using DataGridViewHeaderCell cellTemplate = new(); 1949using DataGridViewHeaderCell cellTemplate = new(); 1986using DataGridViewHeaderCell cell = new(); 2002using DataGridViewHeaderCell cellTemplate = new(); 2021using DataGridViewHeaderCell source = new() 2070using DataGridViewHeaderCell source = new(); 2195using DataGridViewHeaderCell cell = new(); 2206using DataGridViewHeaderCell cell = new() 2231using DataGridViewHeaderCell cell = new(); 2245using DataGridViewHeaderCell cell = new() 2269using DataGridViewHeaderCell cellTemplate = new(); 2291using DataGridViewHeaderCell cellTemplate = new(); 2322using DataGridViewHeaderCell cell = new(); 2340using DataGridViewHeaderCell cell = new() 2353using DataGridViewHeaderCell cellTemplate = new(); 2444using DataGridViewHeaderCell cell = new(); 2452using DataGridViewHeaderCell cell = new(); 2470using DataGridViewHeaderCell cell = new(); 2505using DataGridViewHeaderCell cellTemplate = new(); 2547using DataGridViewHeaderCell cellTemplate = new(); 2570using DataGridViewHeaderCell cellTemplate = new(); 2589using DataGridViewHeaderCell cellTemplate = new(); 2614using DataGridViewHeaderCell cellTemplate = new(); 2657using DataGridViewHeaderCell cellTemplate = new(); 2698using DataGridViewHeaderCell cell = new(); 2714using DataGridViewHeaderCell cellTemplate = new(); 2766using DataGridViewHeaderCell cellTemplate = new(); 2800using DataGridViewHeaderCell cellTemplate = new(); 2829using DataGridViewHeaderCell cellTemplate = new(); 2864using DataGridViewHeaderCell cellTemplate = new(); 2917using DataGridViewHeaderCell cellTemplate = new(); 2997using DataGridViewHeaderCell cellTemplate = new(); 3014using DataGridViewHeaderCell cell = new(); 3047using DataGridViewHeaderCell cellTemplate = new(); 3064using DataGridViewHeaderCell cellTemplate = new(); 3083using DataGridViewHeaderCell cellTemplate = new(); 3101using DataGridViewHeaderCell cell = new(); 3113using DataGridViewHeaderCell cellTemplate = new(); 4628using DataGridViewHeaderCell cell = new(); 4636using DataGridViewHeaderCell cell = new(); 4653using DataGridViewHeaderCell cellTemplate = new();
System\Windows\Forms\DataGridViewRowTests.cs (1)
1770yield return new object[] { new DataGridViewHeaderCell() };
System\Windows\Forms\DataGridViewTests.cs (4)
1737using DataGridViewHeaderCell cell1 = new(); 1759using DataGridViewHeaderCell cell2 = new(); 1795using DataGridViewHeaderCell cell1 = new(); 1827using DataGridViewHeaderCell cell2 = new();
150 references to DataGridViewHeaderCell
System.Windows.Forms (16)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
259private DataGridViewHeaderCell? _topLeftHeaderCell; 4045public DataGridViewHeaderCell TopLeftHeaderCell
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (6)
129if (value is not null && !typeof(DataGridViewHeaderCell).IsAssignableFrom(value)) 224protected DataGridViewHeaderCell HeaderCellCore 228if (Properties.TryGetValue(s_propHeaderCell, out DataGridViewHeaderCell? headerCell)) 235headerCell = (DataGridViewHeaderCell)Activator.CreateInstance(cellType)!; 262DataGridViewHeaderCell? priorValue = Properties.GetValueOrDefault<DataGridViewHeaderCell?>(s_propHeaderCell);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
2748Debug.Assert(this is DataGridViewHeaderCell);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (2)
224if (_owner is DataGridViewHeaderCell || _owner.ReadOnly || _owner.DataGridView is null || _owner.OwningRow is null) 269if (dataGridViewCell is DataGridViewHeaderCell || dataGridView?.IsHandleCreated != true)
System\Windows\Forms\Controls\DataGridView\DataGridViewElement.cs (1)
28GetType() == typeof(DataGridViewComboBoxCell) || GetType() == typeof(DataGridViewHeaderCell) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (3)
18private static readonly Type s_cellType = typeof(DataGridViewHeaderCell); 192DataGridViewHeaderCell dataGridViewCell; 200dataGridViewCell = (DataGridViewHeaderCell)Activator.CreateInstance(thisType)!;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
84ScaleHelper.GetIconResourceAsBitmap(typeof(DataGridViewHeaderCell), iconName, new Size(s_iconsWidth, s_iconsHeight));
System.Windows.Forms.Tests (134)
System\Windows\Forms\DataGridViewCellTests.cs (1)
4294using DataGridViewHeaderCell cellTemplate = new();
System\Windows\Forms\DataGridViewColumnTests.cs (3)
939[InlineData(typeof(DataGridViewHeaderCell))] 977[InlineData(typeof(DataGridViewHeaderCell))] 1825public new DataGridViewHeaderCell HeaderCellCore => base.HeaderCellCore;
System\Windows\Forms\DataGridViewElementTests.cs (1)
374type == typeof(DataGridViewHeaderCell) || type == typeof(DataGridViewColumnHeaderCell) ||
System\Windows\Forms\DataGridViewHeaderCellTests.cs (116)
122using DataGridViewHeaderCell cellTemplate = new(); 132DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 147using DataGridViewHeaderCell cellTemplate = new(); 170using DataGridViewHeaderCell cellTemplate = new(); 204using DataGridViewHeaderCell cell = new(); 243using DataGridViewHeaderCell cellTemplate = new(); 253DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 276using DataGridViewHeaderCell cellTemplate = new(); 294DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 312using DataGridViewHeaderCell cellTemplate = new(); 346using DataGridViewHeaderCell cellTemplate = new(); 381using DataGridViewHeaderCell cell = new(); 411using DataGridViewHeaderCell cellTemplate = new(); 432DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 495using DataGridViewHeaderCell cellTemplate = new(); 505DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 517using DataGridViewHeaderCell cell = new(); 532using DataGridViewHeaderCell cellTemplate = new(); 541DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 568using DataGridViewHeaderCell cell = new(); 617using DataGridViewHeaderCell cellTemplate = new(); 639using DataGridViewHeaderCell cellTemplate = new(); 662using DataGridViewHeaderCell cellTemplate = new(); 685using DataGridViewHeaderCell cell = new(); 702using DataGridViewHeaderCell cellTemplate = new(); 722using DataGridViewHeaderCell cell = new(); 732using DataGridViewHeaderCell cell = new(); 765using DataGridViewHeaderCell cellTemplate = new(); 782using DataGridViewHeaderCell cellTemplate = new(); 802using DataGridViewHeaderCell cellTemplate = new(); 821using DataGridViewHeaderCell cell = new(); 835using DataGridViewHeaderCell cellTemplate = new(); 871using DataGridViewHeaderCell cell = new(); 927using DataGridViewHeaderCell cellTemplate = new(); 951using DataGridViewHeaderCell cellTemplate = new(); 993using DataGridViewHeaderCell cellTemplate = new(); 1030using DataGridViewHeaderCell cellTemplate = new(); 1041using DataGridViewHeaderCell cell = new(); 1051using DataGridViewHeaderCell cellTemplate = new(); 1083using DataGridViewHeaderCell cell = new(); 1113using DataGridViewHeaderCell cellTemplate = new(); 1135using DataGridViewHeaderCell cellTemplate = new(); 1158using DataGridViewHeaderCell cellTemplate = new(); 1177using DataGridViewHeaderCell cell = new(); 1190using DataGridViewHeaderCell cellTemplate = new(); 1207using DataGridViewHeaderCell cell = new(); 1217using DataGridViewHeaderCell cell = new(); 1252using DataGridViewHeaderCell cellTemplate = new(); 1270using DataGridViewHeaderCell cellTemplate = new(); 1290using DataGridViewHeaderCell cellTemplate = new(); 1309using DataGridViewHeaderCell cell = new(); 1324using DataGridViewHeaderCell cellTemplate = new(); 1342using DataGridViewHeaderCell cell = new(); 1373using DataGridViewHeaderCell cellTemplate = new(); 1390using DataGridViewHeaderCell cellTemplate = new(); 1409using DataGridViewHeaderCell cellTemplate = new(); 1426using DataGridViewHeaderCell cell = new(); 1441using DataGridViewHeaderCell cell = new() 1460using DataGridViewHeaderCell cell = new() 1481using DataGridViewHeaderCell cell = new(); 1501using DataGridViewHeaderCell cell = new() 1608using DataGridViewHeaderCell cellTemplate = new(); 1635using DataGridViewHeaderCell cellTemplate = new(); 1663using DataGridViewHeaderCell cellTemplate = new(); 1692using DataGridViewHeaderCell cellTemplate = new(); 1722using DataGridViewHeaderCell cellTemplate = new(); 1750using DataGridViewHeaderCell cellTemplate = new(); 1779using DataGridViewHeaderCell cell = new() 1804using DataGridViewHeaderCell cell = new() 1846using DataGridViewHeaderCell cell = new(); 1898using DataGridViewHeaderCell cellTemplate = new(); 1923using DataGridViewHeaderCell cellTemplate = new(); 1949using DataGridViewHeaderCell cellTemplate = new(); 1986using DataGridViewHeaderCell cell = new(); 2002using DataGridViewHeaderCell cellTemplate = new(); 2021using DataGridViewHeaderCell source = new() 2032DataGridViewHeaderCell cell = Assert.IsType<DataGridViewHeaderCell>(source.Clone()); 2070using DataGridViewHeaderCell source = new(); 2071DataGridViewHeaderCell cell = Assert.IsType<DataGridViewHeaderCell>(source.Clone()); 2195using DataGridViewHeaderCell cell = new(); 2206using DataGridViewHeaderCell cell = new() 2231using DataGridViewHeaderCell cell = new(); 2245using DataGridViewHeaderCell cell = new() 2269using DataGridViewHeaderCell cellTemplate = new(); 2291using DataGridViewHeaderCell cellTemplate = new(); 2322using DataGridViewHeaderCell cell = new(); 2340using DataGridViewHeaderCell cell = new() 2353using DataGridViewHeaderCell cellTemplate = new(); 2444using DataGridViewHeaderCell cell = new(); 2452using DataGridViewHeaderCell cell = new(); 2470using DataGridViewHeaderCell cell = new(); 2505using DataGridViewHeaderCell cellTemplate = new(); 2547using DataGridViewHeaderCell cellTemplate = new(); 2570using DataGridViewHeaderCell cellTemplate = new(); 2589using DataGridViewHeaderCell cellTemplate = new(); 2614using DataGridViewHeaderCell cellTemplate = new(); 2657using DataGridViewHeaderCell cellTemplate = new(); 2698using DataGridViewHeaderCell cell = new(); 2714using DataGridViewHeaderCell cellTemplate = new(); 2766using DataGridViewHeaderCell cellTemplate = new(); 2800using DataGridViewHeaderCell cellTemplate = new(); 2829using DataGridViewHeaderCell cellTemplate = new(); 2864using DataGridViewHeaderCell cellTemplate = new(); 2917using DataGridViewHeaderCell cellTemplate = new(); 2997using DataGridViewHeaderCell cellTemplate = new(); 3014using DataGridViewHeaderCell cell = new(); 3047using DataGridViewHeaderCell cellTemplate = new(); 3064using DataGridViewHeaderCell cellTemplate = new(); 3083using DataGridViewHeaderCell cellTemplate = new(); 3101using DataGridViewHeaderCell cell = new(); 3113using DataGridViewHeaderCell cellTemplate = new(); 4628using DataGridViewHeaderCell cell = new(); 4636using DataGridViewHeaderCell cell = new(); 4653using DataGridViewHeaderCell cellTemplate = new();
System\Windows\Forms\DataGridViewRowTests.cs (5)
622[InlineData(typeof(DataGridViewHeaderCell))] 659[InlineData(typeof(DataGridViewHeaderCell))] 700[InlineData(typeof(DataGridViewHeaderCell))] 1775public void DataGridViewRow_HeaderCellCore_SetInvalid_ThrowsArgumentException(DataGridViewHeaderCell value) 5796public new DataGridViewHeaderCell HeaderCellCore
System\Windows\Forms\DataGridViewTests.cs (8)
1737using DataGridViewHeaderCell cell1 = new(); 1759using DataGridViewHeaderCell cell2 = new(); 1772DataGridViewHeaderCell cell = Assert.IsType<DataGridViewTopLeftHeaderCell>(control.TopLeftHeaderCell); 1795using DataGridViewHeaderCell cell1 = new(); 1827using DataGridViewHeaderCell cell2 = new(); 1842DataGridViewHeaderCell cell = Assert.IsType<DataGridViewTopLeftHeaderCell>(control.TopLeftHeaderCell); 1870DataGridViewHeaderCell cell = Assert.IsType<DataGridViewTopLeftHeaderCell>(control.TopLeftHeaderCell); 1898DataGridViewHeaderCell cell = Assert.IsType<DataGridViewTopLeftHeaderCell>(control.TopLeftHeaderCell);