using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace AppliedDataBindingSample { public partial class ProductListUI : Form { public ProductListUI() { InitializeComponent(); } private void productsBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.productsBindingSource.EndEdit(); this.productsTableAdapter.Update(this.northwindDataSet.Products); } private void ProductListUI_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'northwindDataSet.Suppliers' table. You can move, or remove it, as needed. this.suppliersTableAdapter.Fill(this.northwindDataSet.Suppliers); // TODO: This line of code loads data into the 'northwindDataSet.Products' table. You can move, or remove it, as needed. this.productsTableAdapter.Fill(this.northwindDataSet.Products); } } }