title: How to save changes made to DataGridView?
body: <p>I thought I knew how to do this, but when I am actually doing it, doesn't seem like I know how to do this.</p>
  
  <p>What I am trying to achieve is display a filtered rows of table that is in dataset when search btn is clicked. Allow users to make changes on the datagridview or update selected rows with values provided on textbox on the update panel when Update btn is clicked. But I can't seem to achieve this. </p>
  
  <pre><code> private void Display()
      {
          bindingSourceDisplay.DataSource=_dsNorthwind.Customers.Where(x=&gt;!x.IsRegionNull()                         &amp;&amp; !x.IsFaxNull()                                                                         &amp;&amp; !x.IsPostalCodeNull()).Take(10);
  
          dgvSearchResult.DataSource = bindingSourceDisplay;
      }
  
   internal void UpdateSelectedRows(UpdateBtnClickedEventArgs e)
      {
          //cannot do this because datagridviewselectedrow and customerrow are a type mismatch
          foreach (DS_Northwind.CustomersRow selectedRow in dgvSearchResult.SelectedRows)
          {
              selectedRow.Phone = e.PhoneNum;
              selectedRow.PostalCode = e.PostalCode;
          }
  //how do I update each selected rows in datagridview? Can't do selectedRow.Cells["ColName"] either for some reason...
  //if my dataset is connected to my database, isn't saving changes as simple as doing accept changes?
              _dsNorthwind.AcceptChanges();
          }
  </code></pre>