7 overrides of ValueType
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
113public override Type ValueType
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
388public override Type? ValueType
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
486public override Type ValueType
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
155public override Type? ValueType
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
175public override Type? ValueType
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
360public override Type ValueType => base.ValueType ?? s_defaultValueType;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
80public override Type ValueType
35 writes to ValueType
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
906dataGridViewCell.ValueType = ValueType;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
402base.ValueType = value;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
197base.ValueType = value;
System.Windows.Forms.Tests (32)
System\Windows\Forms\DataGridViewCellTests.cs (27)
646cell.ValueType = typeof(string); 662cell.ValueType = typeof(string); 1294cell.ValueType = typeof(string); 1310cell.ValueType = typeof(string); 2816ValueType = value 2822cell.ValueType = value; 2833ValueType = typeof(string) 2835cell.ValueType = value; 2840cell.ValueType = value; 2853cell.ValueType = value; 2858cell.ValueType = value; 2870ValueType = typeof(string) 2874cell.ValueType = value; 2879cell.ValueType = value; 2943cell.ValueType = value; 2949cell.ValueType = value; 2967cell.ValueType = typeof(string); 2969cell.ValueType = value; 2975cell.ValueType = value; 3327ValueType = typeof(int) 3747cell.ValueType = typeof(string); 3765cell.ValueType = typeof(string); 3782cell.ValueType = typeof(string); 6151ValueType = valueType, 6184using CustomFormattedValueType cell = new() { ValueType = typeof(int) }; 6201ValueType = valueType, 6214ValueType = typeof(int),
System\Windows\Forms\DataGridViewHeaderCellTests.cs (5)
1617cell.ValueType = value; 1623cell.ValueType = value; 1643cell.ValueType = typeof(string); 1645cell.ValueType = value; 1651cell.ValueType = value;
39 references to ValueType
System.Windows.Forms (15)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
25355dataGridViewCurrentCell.ValueType, 25360&& dataGridViewCurrentCell.ValueType is not null 25361&& dataGridViewCurrentCell.ValueType.IsAssignableFrom(dgvcpe.Value.GetType()))
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
117Type? valueType = base.ValueType;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
235public virtual Type? FormattedValueType => ValueType; 728if (valueTypeConverter is null && ValueType is not null) 732valueTypeConverter = DataGridView.GetCachedTypeConverter(ValueType); 736valueTypeConverter = TypeDescriptor.GetConverter(ValueType); 906dataGridViewCell.ValueType = ValueType; 3703ValueType!,
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
392Type? valueType = base.ValueType;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
500Type? baseValueType = base.ValueType;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
179Type? baseValueType = base.ValueType;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
360public override Type ValueType => base.ValueType ?? s_defaultValueType;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
84Type? valueType = base.ValueType;
System.Windows.Forms.Tests (24)
System\Windows\Forms\DataGridViewCellTests.cs (17)
51Assert.Null(cell.ValueType); 2777Assert.Null(cell.ValueType); 2806Assert.Same(valueType, cell.ValueType); 2818Assert.Equal(value, cell.ValueType); 2823Assert.Equal(value, cell.ValueType); 2836Assert.Equal(value, cell.ValueType); 2841Assert.Equal(value, cell.ValueType); 2854Assert.Equal(value, cell.ValueType); 2859Assert.Equal(value, cell.ValueType); 2875Assert.Equal(value, cell.ValueType); 2880Assert.Equal(value, cell.ValueType); 2944Assert.Equal(value, cell.ValueType); 2950Assert.Equal(value, cell.ValueType); 2970Assert.Equal(value, cell.ValueType); 2976Assert.Equal(value, cell.ValueType); 3361Assert.Equal(typeof(int), cell.ValueType); 3397Assert.Null(cell.ValueType);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (5)
1382Assert.Equal(typeof(object), cell.ValueType); 1618Assert.Equal(expected, cell.ValueType); 1624Assert.Equal(expected, cell.ValueType); 1646Assert.Equal(expected, cell.ValueType); 1652Assert.Equal(expected, cell.ValueType);
System\Windows\Forms\DataGridViewTests.cs (2)
3690DataGridViewCellFormattingEventArgs cellFormattingEventArgs = new(0, 0, dataGridView.Rows[0].Cells[0].Value, dataGridView.Rows[0].Cells[0].ValueType, dataGridView.Rows[0].Cells[0].InheritedStyle); 3695cellFormattingEventArgs = new(0, 1, dataGridView.Rows[1].Cells[0].Value, dataGridView.Rows[1].Cells[0].ValueType, dataGridView.Rows[1].Cells[0].InheritedStyle);