22 writes to DataSource
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
307
comboBoxTemplates.
DataSource
= _templates;
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2838
DataSource
= null;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (3)
185
EditingComboBox.
DataSource
= value;
1275
comboBox.
DataSource
= null;
1289
comboBox.
DataSource
= DataSource;
System.Windows.Forms.Tests (15)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
68
DataSource
= TestDataSources.GetPersons(),
System\Windows\Forms\Combobox.ObjectCollectionTests.cs (7)
108
DataSource
= Array.Empty<object>()
388
DataSource
= Array.Empty<object>()
456
DataSource
= Array.Empty<object>()
818
DataSource
= Array.Empty<object>()
919
DataSource
= Array.Empty<object>()
1072
comboBox.
DataSource
= new string[] { "b" };
1373
comboBox.
DataSource
= new string[] { "b" };
System\Windows\Forms\ComboBoxTests.cs (7)
637
DataSource
= value
645
control.
DataSource
= value;
675
control.
DataSource
= dataSource1;
681
control.
DataSource
= dataSource1;
688
control.
DataSource
= dataSource2;
694
control.
DataSource
= null;
702
control.
DataSource
= dataSource1;
TestPassApp (1)
DataBindingExample.cs (1)
34
comboBox1.
DataSource
= _studentB;
WinFormsControlsTest (1)
ComboBoxes.cs (1)
17
dataBoundComboBox.
DataSource
= TestDataSources.GetPersons();
15 references to DataSource
System.Windows.Forms (5)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
1022
if (
DataSource
is not null && value)
1347
if (
DataSource
is not null)
2834
if (
DataSource
is not null && Created)
2843
if (
DataSource
is null)
3284
if (
DataSource
is ICurrencyManagerProvider)
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataMemberFieldEditor.cs (1)
24
if (TypeDescriptor.GetProperties(instance)[nameof(ComboBox.
DataSource
)] is not PropertyDescriptor property)
System\Windows\Forms\Design\DataMemberListEditor.cs (1)
22
if (TypeDescriptor.GetProperties(context.Instance)[nameof(ComboBox.
DataSource
)] is { } dataSourceProperty)
System.Windows.Forms.Tests (8)
System\Windows\Forms\ComboBoxTests.cs (8)
58
Assert.Null(control.
DataSource
);
639
Assert.Same(value, control.
DataSource
);
646
Assert.Same(value, control.
DataSource
);
676
Assert.Same(dataSource1, control.
DataSource
);
682
Assert.Same(dataSource1, control.
DataSource
);
689
Assert.Same(dataSource2, control.
DataSource
);
695
Assert.Null(control.
DataSource
);
703
Assert.Same(dataSource1, control.
DataSource
);