DataEntityTierClassLibrary.NorthwindDataSet northwindDataSet = new DataEntityTierClassLibrary.NorthwindDataSet();
this.customersBindingSource.DataMember = "Customers";
this.customersBindingSource.DataSource = this.northwindDataSet;
this.customerIDTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.customersBindingSource, "CustomerID", true));
点击页面上一个button新增记录时取得Customers这个datatable并且这个表的Customers.Text=customerIDTextBox.Text
this.customersBindingSource.DataMember = "Customers";
this.customersBindingSource.DataSource = this.northwindDataSet;
this.customerIDTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.customersBindingSource, "CustomerID", true));
点击页面上一个button新增记录时取得Customers这个datatable并且这个表的Customers.Text=customerIDTextBox.Text
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货