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