在线救助,通过bindingsource与页面输入控件进行绑定,保存时如何获取与bingdingsource相关的dataset中的表
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