5 writes to ValueMember
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
653
dataGridViewCell.
ValueMember
= ValueMember;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (2)
390
ComboBoxCellTemplate.
ValueMember
= value;
403
dataGridViewCell.
ValueMember
= value;
System.Windows.Forms.Tests (2)
System\Windows\Forms\DataGridViewComboBoxCellTests.cs (2)
63
_dataGridViewComboBoxCell.
ValueMember
= "Id";
170
_dataGridViewComboBoxCell.
ValueMember
= value;
24 references to ValueMember
System.Windows.Forms (19)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (18)
169
InitializeValueMemberPropertyDescriptor(
ValueMember
);
173
Debug.Assert(
ValueMember
is not null &&
ValueMember
.Length > 0);
653
dataGridViewCell.ValueMember =
ValueMember
;
706
InitializeValueMemberPropertyDescriptor(
ValueMember
);
953
!string.IsNullOrEmpty(
ValueMember
) || !string.IsNullOrEmpty(DisplayMember))
1066
else if (!string.IsNullOrEmpty(
ValueMember
))
1068
PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(item).Find(
ValueMember
, ignoreCase: true);
1131
else if (!string.IsNullOrEmpty(
ValueMember
))
1133
PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(item).Find(
ValueMember
, ignoreCase: true);
1291
comboBox.ValueMember =
ValueMember
;
1535
!string.IsNullOrEmpty(
ValueMember
) || !string.IsNullOrEmpty(DisplayMember));
1547
item = ItemFromComboBoxItems(rowIndex, string.IsNullOrEmpty(
ValueMember
) ? DisplayMember :
ValueMember
, value);
1578
!string.IsNullOrEmpty(DisplayMember) || !string.IsNullOrEmpty(
ValueMember
));
1590
item = ItemFromComboBoxItems(RowIndex, string.IsNullOrEmpty(DisplayMember) ?
ValueMember
: DisplayMember, formattedValue);
1610
InitializeValueMemberPropertyDescriptor(
ValueMember
);
2394
!string.IsNullOrEmpty(DisplayMember) || !string.IsNullOrEmpty(
ValueMember
))
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (1)
381
return ComboBoxCellTemplate.
ValueMember
;
System.Windows.Forms.Tests (5)
System\Windows\Forms\DataGridViewComboBoxCellTests.cs (3)
68
_dataGridViewComboBoxCell.
ValueMember
.Should().BeEmpty();
162
_dataGridViewComboBoxCell.
ValueMember
.Should().BeEmpty();
171
_dataGridViewComboBoxCell.
ValueMember
.Should().Be(value);
System\Windows\Forms\DataGridViewComboBoxColumnTests.cs (2)
243
((DataGridViewComboBoxCell)_dataGridViewComboBoxColumn.CellTemplate!).
ValueMember
.Should().Be("Id");
261
cell.
ValueMember
.Should().Be("Id");