title: save datagrid view changes to database entity framework
body: <p>I am trying to bind datagridview with entity Framework and want to save datagridview changes back to database. but no success.
  i did some research found below code  as sol.
  but in my case it is not going to work. the post i viewed almost 3 years old. may be the below logic is outdated. any suggestion please.
  i am using EF5.</p>
  
  <pre><code>AmzEntities amz;
          public SellerSettings()
          {
              InitializeComponent();
          }
  
          private void SellerSettings_Load(object sender, EventArgs e)
          {
              amz = new AmzEntities();
  
              AmzEntities context = new AmzEntities();
              context.Sellers.Load();
              dataGridView1.DataSource = context.Sellers.Local.ToBindingList(); ;
          }
  
          private void buttonSave_Click(object sender, EventArgs e)
          {
  
              amz.SaveChanges();
          }
  </code></pre>