8 overrides of FormattedValueType
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
84public override Type FormattedValueType =>
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
259public override Type FormattedValueType => ThreeState ? s_defaultCheckStateType : s_defaultBooleanType;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
368public override Type FormattedValueType => s_defaultFormattedValueType;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
84public override Type FormattedValueType => s_defaultFormattedValueType;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
80public override Type FormattedValueType
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
112public override Type? FormattedValueType => s_defaultFormattedValueType;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
55public override Type FormattedValueType
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataGridViewCellTests.cs (1)
6224public override Type FormattedValueType => FormattedValueTypeResult;
37 references to FormattedValueType
System.Windows.Forms (18)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
25295|| (dataGridViewCurrentCell.FormattedValueType is not null && dataGridViewCurrentCell.FormattedValueType.IsAssignableFrom(nullValue.GetType())))
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (16)
242if (FormattedValueType is not null) 246formattedValueTypeConverter = DataGridView.GetCachedTypeConverter(FormattedValueType); 250formattedValueTypeConverter = TypeDescriptor.GetConverter(FormattedValueType); 1603FormattedValueType, 1611FormattedValueType is not null && 1612(formattedValue is null || !FormattedValueType.IsAssignableFrom(formattedValue.GetType()))) 1618FormattedValueType, 1645(formattedValue is null || FormattedValueType is null || !FormattedValueType.IsAssignableFrom(formattedValue.GetType()))) 1649FormattedValueType is not null && 1650!typeof(ValueType).IsAssignableFrom(FormattedValueType)) 1657if (FormattedValueType is null) 2723if (FormattedValueType == s_stringType) 3719if (FormattedValueType is null) 3730!FormattedValueType.IsAssignableFrom(formattedValue.GetType())) 3738FormattedValueType,
System.Windows.Forms.Tests (19)
System\Windows\Forms\DataGridViewCellTests.cs (15)
32Assert.Null(cell.FormattedValueType); 2819Assert.Equal(value, cell.FormattedValueType); 2824Assert.Equal(value, cell.FormattedValueType); 2837Assert.Equal(value, cell.FormattedValueType); 2842Assert.Equal(value, cell.FormattedValueType); 2855Assert.Equal(value, cell.FormattedValueType); 2860Assert.Equal(value, cell.FormattedValueType); 2876Assert.Equal(value, cell.FormattedValueType); 2881Assert.Equal(value, cell.FormattedValueType); 2945Assert.Equal(value, cell.FormattedValueType); 2951Assert.Equal(value, cell.FormattedValueType); 2971Assert.Equal(value, cell.FormattedValueType); 2977Assert.Equal(value, cell.FormattedValueType); 3347Assert.Equal(typeof(int), cell.FormattedValueType); 3384Assert.Null(cell.FormattedValueType);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (4)
1619Assert.Equal(typeof(string), cell.FormattedValueType); 1625Assert.Equal(typeof(string), cell.FormattedValueType); 1647Assert.Equal(typeof(string), cell.FormattedValueType); 1653Assert.Equal(typeof(string), cell.FormattedValueType);