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