22 writes to DataSource
Accessibility_Core_App (1)
DataBindingExample.cs (1)
34comboBox1.DataSource = _studentB;
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
315comboBoxTemplates.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; 1278comboBox.DataSource = null; 1292comboBox.DataSource = DataSource;
System.Windows.Forms.Tests (15)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
66DataSource = TestDataSources.GetPersons(),
System\Windows\Forms\Combobox.ObjectCollectionTests.cs (7)
106DataSource = Array.Empty<object>() 386DataSource = Array.Empty<object>() 454DataSource = Array.Empty<object>() 816DataSource = Array.Empty<object>() 917DataSource = Array.Empty<object>() 1070comboBox.DataSource = new string[] { "b" }; 1371comboBox.DataSource = new string[] { "b" };
System\Windows\Forms\ComboBoxTests.cs (7)
635DataSource = value 643control.DataSource = value; 673control.DataSource = dataSource1; 679control.DataSource = dataSource1; 686control.DataSource = dataSource2; 692control.DataSource = null; 700control.DataSource = dataSource1;
WinFormsControlsTest (1)
ComboBoxes.cs (1)
17dataBoundComboBox.DataSource = TestDataSources.GetPersons();
13 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.Tests (8)
System\Windows\Forms\ComboBoxTests.cs (8)
56Assert.Null(control.DataSource); 637Assert.Same(value, control.DataSource); 644Assert.Same(value, control.DataSource); 674Assert.Same(dataSource1, control.DataSource); 680Assert.Same(dataSource1, control.DataSource); 687Assert.Same(dataSource2, control.DataSource); 693Assert.Null(control.DataSource); 701Assert.Same(dataSource1, control.DataSource);