11 references to CellType
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
10791if (dataGridViewColumn.CellType is null) 10869if (Rows.Count > 0 && dataGridViewColumn.CellType is null) 10940Debug.Assert(dataGridViewColumn.CellType is not null); 10958Debug.Assert(dataGridViewColumn.CellType is not null); 15426if (dataGridViewColumn.CellType is null)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnConverter.cs (2)
40if (dataGridViewColumn.CellType is not null) 45return new InstanceDescriptor(ctor, new object[] { dataGridViewColumn.CellType }, false);
System.Windows.Forms.Tests (4)
System\Windows\Forms\DataGridViewColumnTests.cs (4)
18Assert.Null(column.CellType); 69Assert.Equal(cellTemplate?.GetType(), column.CellType); 511Assert.Same(value?.GetType(), column.CellType); 516Assert.Same(value?.GetType(), column.CellType);