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