35 writes to DefaultHeaderCellType
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
746dataGridViewBand.DefaultHeaderCellType = DefaultHeaderCellType;
System.Windows.Forms.Tests (34)
System\Windows\Forms\DataGridViewColumnTests.cs (13)
925DefaultHeaderCellType = value 930column.DefaultHeaderCellType = value; 942DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell) 944column.DefaultHeaderCellType = value; 948column.DefaultHeaderCellType = value; 964column.DefaultHeaderCellType = value; 968column.DefaultHeaderCellType = value; 985column.DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell); 987column.DefaultHeaderCellType = value; 991column.DefaultHeaderCellType = value; 1000Assert.Throws<ArgumentException>("value", () => column.DefaultHeaderCellType = value); 1009DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell) 1011Assert.Throws<ArgumentException>("value", () => column.DefaultHeaderCellType = value);
System\Windows\Forms\DataGridViewRowTests.cs (21)
608DefaultHeaderCellType = value 613row.DefaultHeaderCellType = value; 625DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell) 627row.DefaultHeaderCellType = value; 631row.DefaultHeaderCellType = value; 646row.DefaultHeaderCellType = value; 650row.DefaultHeaderCellType = value; 666row.DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell); 668row.DefaultHeaderCellType = value; 672row.DefaultHeaderCellType = value; 687row.DefaultHeaderCellType = value; 691row.DefaultHeaderCellType = value; 707row.DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell); 709row.DefaultHeaderCellType = value; 713row.DefaultHeaderCellType = value; 722Assert.Throws<ArgumentException>("value", () => row.DefaultHeaderCellType = value); 731DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell) 733Assert.Throws<ArgumentException>("value", () => row.DefaultHeaderCellType = value); 3930DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell), 3973DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell), 4020source.DefaultHeaderCellType = typeof(DataGridViewRowHeaderCell);
32 references to DefaultHeaderCellType
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (3)
134nameof(DefaultHeaderCellType), 233Type cellType = DefaultHeaderCellType; 746dataGridViewBand.DefaultHeaderCellType = DefaultHeaderCellType;
System.Windows.Forms.Tests (29)
System\Windows\Forms\DataGridViewColumnTests.cs (10)
22Assert.Same(typeof(DataGridViewColumnHeaderCell), column.DefaultHeaderCellType); 73Assert.Same(typeof(DataGridViewColumnHeaderCell), column.DefaultHeaderCellType); 927Assert.Equal(expected, column.DefaultHeaderCellType); 931Assert.Equal(expected, column.DefaultHeaderCellType); 945Assert.Equal(value, column.DefaultHeaderCellType); 949Assert.Equal(value, column.DefaultHeaderCellType); 965Assert.Equal(expected, column.DefaultHeaderCellType); 969Assert.Equal(expected, column.DefaultHeaderCellType); 988Assert.Equal(value, column.DefaultHeaderCellType); 992Assert.Equal(value, column.DefaultHeaderCellType);
System\Windows\Forms\DataGridViewRowTests.cs (19)
23Assert.Same(typeof(DataGridViewRowHeaderCell), row.DefaultHeaderCellType); 580Assert.Equal(typeof(DataGridViewRowHeaderCell), row.DefaultHeaderCellType); 592Assert.Equal(typeof(DataGridViewRowHeaderCell), row.DefaultHeaderCellType); 610Assert.Equal(expected, row.DefaultHeaderCellType); 614Assert.Equal(expected, row.DefaultHeaderCellType); 628Assert.Equal(value, row.DefaultHeaderCellType); 632Assert.Equal(value, row.DefaultHeaderCellType); 647Assert.Equal(expected, row.DefaultHeaderCellType); 651Assert.Equal(expected, row.DefaultHeaderCellType); 669Assert.Equal(value, row.DefaultHeaderCellType); 673Assert.Equal(value, row.DefaultHeaderCellType); 688Assert.Equal(expected, row.DefaultHeaderCellType); 692Assert.Equal(expected, row.DefaultHeaderCellType); 710Assert.Equal(value, row.DefaultHeaderCellType); 714Assert.Equal(value, row.DefaultHeaderCellType); 3907Assert.Equal(typeof(DataGridViewRowHeaderCell), row.DefaultHeaderCellType); 3946Assert.Equal(typeof(DataGridViewRowHeaderCell), row.DefaultHeaderCellType); 3989Assert.Equal(typeof(DataGridViewRowHeaderCell), row.DefaultHeaderCellType); 4038Assert.Equal(typeof(DataGridViewRowHeaderCell), row.DefaultHeaderCellType);