title: Linq to Entity insert data in db
body: <p>How can I insert data added in GridView after clicking Save buton on BidingNavigator using Linq to Entity.</p>
  
  <p>I am trying to add data to database but some problem occurs. I'm showing data using this code:</p>
  
  <p>...</p>
  
  <pre><code> private void PostojeciPRojekti_Load(object sender, EventArgs e)
          {
  
              dbcontext = new logicrms2Entities1();
  
              var projekti = from c in dbcontext.projekti
                               select c;
  
              projektiBindingSource.DataSource = projekti.ToList();
              projektiGridControl.Refresh();
  
  
  
          }
  </code></pre>
  
  <p>...</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have try to save data using:</p>
  
  <pre><code>   private void projektiBindingNavigatorSaveItem_Click(object sender, EventArgs e)
      {
  
  
          dbcontext.SaveChanges();
          gridView1.RefreshData();
  
  
      }
  </code></pre>