5 writes to DropDownWidth
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
648
dataGridViewCell.
DropDownWidth
= DropDownWidth;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (2)
286
ComboBoxCellTemplate.
DropDownWidth
= value;
299
dataGridViewCell.
DropDownWidth
= value;
System.Windows.Forms.Tests (2)
System\Windows\Forms\DataGridViewComboBoxCellTests.cs (2)
84
_dataGridViewComboBoxCell.
DropDownWidth
= width;
93
Exception? dropDownWidthOutOfRangeException = Record.Exception(() => _dataGridViewComboBoxCell.
DropDownWidth
= width);
11 references to DropDownWidth
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (6)
323
throw new ArgumentOutOfRangeException(nameof(
DropDownWidth
), value, string.Format(SR.DataGridViewComboBoxCell_DropDownWidthOutOfRange, 1));
595
if (
DropDownWidth
== 1)
626
if (dropDownWidth !=
DropDownWidth
)
628
PInvokeCore.SendMessage(comboBox, PInvoke.CB_SETDROPPEDWIDTH, (WPARAM)
DropDownWidth
);
648
dataGridViewCell.DropDownWidth =
DropDownWidth
;
1274
comboBox.DropDownWidth =
DropDownWidth
;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (1)
277
return ComboBoxCellTemplate.
DropDownWidth
;
System.Windows.Forms.Tests (4)
System\Windows\Forms\DataGridViewComboBoxCellTests.cs (2)
77
_dataGridViewComboBoxCell.
DropDownWidth
.Should().Be(1);
85
_dataGridViewComboBoxCell.
DropDownWidth
.Should().Be(width);
System\Windows\Forms\DataGridViewComboBoxColumnTests.cs (2)
175
((DataGridViewComboBoxCell)_dataGridViewComboBoxColumn.CellTemplate!).
DropDownWidth
.Should().Be(123);
193
cell.
DropDownWidth
.Should().Be(77);