Implemented interface member:
property
DataBindings
System.Windows.Forms.IBindableComponent.DataBindings
171 references to DataBindings
Accessibility_Core_App (10)
DataBindingExample.cs (10)
51textBox1.DataBindings.Add("Text", stu, "StudentNumber"); 52domainUpDown1.DataBindings.Add("Text", stu, "LuckyNumber"); 53numericUpDown1.DataBindings.Add("Text", stu, "Count"); 54label1.DataBindings.Add("Text", stu, "Name"); 55button1.DataBindings.Add("Text", stu, "Sex"); 56maskedTextBox1.DataBindings.Add("Text", stu, "PhoneNumber"); 57linkLabel1.DataBindings.Add("Text", stu, "HomeNumber"); 58richTextBox1.DataBindings.Add("Text", stu, "Hobby"); 59checkBox1.DataBindings.Add("Checked", stu, "IsStudent"); 60radioButton1.DataBindings.Add("Checked", stu, "IsStudent");
DesignSurface (1)
MainForm.cs (1)
367richTextBox.DataBindings.Add(new Binding("Text", bindingSource, "Text", true, DataSourceUpdateMode.OnPropertyChanged));
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (2)
10825for (int i = 0; i < DataBindings.Count; i++) 10827BindingContext.UpdateBinding(BindingContext, DataBindings[i]);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
379public new ControlBindingsCollection DataBindings => base.DataBindings;
System.Windows.Forms.Design (12)
System\Windows\Forms\Design\ControlDesigner.cs (11)
455Control.DataBindings.CollectionChanged -= _dataBindingsCollectionChanged; 535Debug.Assert(ctl.DataBindings.Count > 0, "we should not be notified if the control has no dataBindings"); 536ctl.DataBindings.CollectionChanged -= _dataBindingsCollectionChanged; 537for (int i = 0; i < ctl.DataBindings.Count; i++) 539Binding binding = ctl.DataBindings[i]; 547ctl.DataBindings.Remove(binding); 552if (ctl.DataBindings.Count == 0) 562ctl.DataBindings.CollectionChanged += _dataBindingsCollectionChanged; 951Control.DataBindings.CollectionChanged += _dataBindingsCollectionChanged; 1044if (ctl.DataBindings.Count == 0 && _removalNotificationHooked) 1054else if (ctl.DataBindings.Count > 0 && !_removalNotificationHooked)
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (1)
36foreach (Binding binding in control.DataBindings)
System.Windows.Forms.Tests (145)
System\Windows\Forms\BindingContextTests.cs (1)
991control.DataBindings.Add(binding);
System\Windows\Forms\ButtonBaseTests.cs (24)
4563Assert.Empty(control.DataBindings); 4578Assert.Empty(control.DataBindings); 4589Assert.Empty(control.DataBindings); 4615Assert.Empty(control.DataBindings); 4630Assert.Empty(control.DataBindings); 4641Assert.Empty(control.DataBindings); 4670Assert.Empty(control.DataBindings); 4685Assert.Empty(control.DataBindings); 4696Assert.Empty(control.DataBindings); 4718Assert.Empty(control.DataBindings); 4733Assert.Empty(control.DataBindings); 4744Assert.Empty(control.DataBindings); 4770Assert.Empty(control.DataBindings); 4785Assert.Empty(control.DataBindings); 4796Assert.Empty(control.DataBindings); 4825Assert.Empty(control.DataBindings); 4840Assert.Empty(control.DataBindings); 4851Assert.Empty(control.DataBindings); 4877Assert.Empty(control.DataBindings); 4888Assert.Empty(control.DataBindings); 4918Assert.Empty(control.DataBindings); 4929Assert.Empty(control.DataBindings); 4962Assert.Empty(control.DataBindings); 4973Assert.Empty(control.DataBindings);
System\Windows\Forms\ControlBindingsCollectionTests.cs (2)
101ControlBindingsCollection collection = control.DataBindings; 254ControlBindingsCollection collection = control.DataBindings;
System\Windows\Forms\ControlTests.Methods.cs (47)
979Assert.Empty(control.DataBindings); 993Assert.Empty(control.DataBindings); 1003Assert.Empty(control.DataBindings); 1030Assert.Empty(control.DataBindings); 1044Assert.Empty(control.DataBindings); 1055Assert.Empty(control.DataBindings); 1084Assert.Empty(control.DataBindings); 1102Assert.Empty(control.DataBindings); 1123Assert.Empty(control.DataBindings); 1150control.DataBindings.Add(new Binding("Text", new object(), "member")); 1157Assert.Empty(control.DataBindings); 1171Assert.Empty(control.DataBindings); 1181Assert.Empty(control.DataBindings); 1212Assert.Empty(control.DataBindings); 1226Assert.Empty(control.DataBindings); 1240Assert.Empty(control.DataBindings); 1281Assert.Empty(control.DataBindings); 1295Assert.Empty(control.DataBindings); 1305Assert.Empty(control.DataBindings); 1330Assert.Empty(control.DataBindings); 1340Assert.Empty(control.DataBindings); 1367Assert.Empty(control.DataBindings); 1381Assert.Empty(control.DataBindings); 1392Assert.Empty(control.DataBindings); 1424Assert.Empty(control.DataBindings); 1435Assert.Empty(control.DataBindings); 1464Assert.Empty(control.DataBindings); 1482Assert.Empty(control.DataBindings); 1503Assert.Empty(control.DataBindings); 1550Assert.Empty(control.DataBindings); 1571Assert.Empty(control.DataBindings); 1598control.DataBindings.Add(new Binding("Text", new object(), "member")); 1605Assert.Empty(control.DataBindings); 1619Assert.Empty(control.DataBindings); 1629Assert.Empty(control.DataBindings); 1646control.DataBindings.Add(binding); 1657Assert.Same(binding, Assert.Single(control.DataBindings)); 1667Assert.Same(binding, Assert.Single(control.DataBindings)); 1698Assert.Empty(control.DataBindings); 1712Assert.Empty(control.DataBindings); 1726Assert.Empty(control.DataBindings); 1765Assert.Empty(control.DataBindings); 1779Assert.Empty(control.DataBindings); 6369Assert.Empty(control.DataBindings); 6372control.DataBindings.Add(new Binding("Text", new object(), "member")); 6374Assert.Empty(control.DataBindings); 6378Assert.Empty(control.DataBindings);
System\Windows\Forms\ErrorProviderTests.cs (1)
1317form.DataBindings.Add("Text", customDataSource, "Error");
System\Windows\Forms\StatusStripTests.cs (8)
914Assert.Empty(control.DataBindings); 929Assert.Empty(control.DataBindings); 940Assert.Empty(control.DataBindings); 967Assert.Empty(control.DataBindings); 982Assert.Empty(control.DataBindings); 993Assert.Empty(control.DataBindings); 1035Assert.Empty(control.DataBindings); 1046Assert.Empty(control.DataBindings);
System\Windows\Forms\ToolStripDropDownTests.cs (27)
3046Assert.Empty(control.DataBindings); 3062Assert.Empty(control.DataBindings); 3074Assert.Empty(control.DataBindings); 3102Assert.Empty(control.DataBindings); 3119Assert.Empty(control.DataBindings); 3132Assert.Empty(control.DataBindings); 3159Assert.Empty(control.DataBindings); 3175Assert.Empty(control.DataBindings); 3187Assert.Empty(control.DataBindings); 3219Assert.Empty(control.DataBindings); 3239Assert.Empty(control.DataBindings); 3259Assert.Empty(control.DataBindings); 3290Assert.Empty(control.DataBindings); 3306Assert.Empty(control.DataBindings); 3318Assert.Empty(control.DataBindings); 3345Assert.Empty(control.DataBindings); 3356Assert.Empty(control.DataBindings); 3383Assert.Empty(control.DataBindings); 3400Assert.Empty(control.DataBindings); 3413Assert.Empty(control.DataBindings); 3446Assert.Empty(control.DataBindings); 3459Assert.Empty(control.DataBindings); 3492Assert.Empty(control.DataBindings); 3512Assert.Empty(control.DataBindings); 3532Assert.Empty(control.DataBindings); 3581Assert.Empty(control.DataBindings); 3600Assert.Empty(control.DataBindings);
System\Windows\Forms\ToolStripTests.cs (19)
4364Assert.Empty(control.DataBindings); 4380Assert.Empty(control.DataBindings); 4392Assert.Empty(control.DataBindings); 4418Assert.Empty(control.DataBindings); 4434Assert.Empty(control.DataBindings); 4446Assert.Empty(control.DataBindings); 4478Assert.Empty(control.DataBindings); 4498Assert.Empty(control.DataBindings); 4518Assert.Empty(control.DataBindings); 4549Assert.Empty(control.DataBindings); 4565Assert.Empty(control.DataBindings); 4577Assert.Empty(control.DataBindings); 4604Assert.Empty(control.DataBindings); 4615Assert.Empty(control.DataBindings); 4646Assert.Empty(control.DataBindings); 4666Assert.Empty(control.DataBindings); 4686Assert.Empty(control.DataBindings); 4735Assert.Empty(control.DataBindings); 4754Assert.Empty(control.DataBindings);
System\Windows\Forms\WebBrowserTests.cs (16)
2529Assert.Empty(control.DataBindings); 2544Assert.Empty(control.DataBindings); 2555Assert.Empty(control.DataBindings); 2584Assert.Empty(control.DataBindings); 2599Assert.Empty(control.DataBindings); 2610Assert.Empty(control.DataBindings); 2632Assert.Empty(control.DataBindings); 2647Assert.Empty(control.DataBindings); 2658Assert.Empty(control.DataBindings); 2691Assert.Empty(control.DataBindings); 2702Assert.Empty(control.DataBindings); 2731Assert.Empty(control.DataBindings); 2746Assert.Empty(control.DataBindings); 2757Assert.Empty(control.DataBindings); 2783Assert.Empty(control.DataBindings); 2794Assert.Empty(control.DataBindings);