using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using NorthwindDataAccess;
using NorthwindDataAccess.CustomersDataSetTableAdapters;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
CustomersTableAdapter m_Adapter = new CustomersTableAdapter();
CustomersDataSet c_DataSet = new CustomersDataSet();
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void btn_fill_Click(object sender, EventArgs e)
{
m_Adapter.Fill(c_DataSet.Customers);
this.dataGridView1.DataSource = c_DataSet.Customers;
}
private void btn_update_Click(object sender, EventArgs e)
{
m_Adapter.Update(c_DataSet.Customers);
}
}
}