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