title: How to delete a selected DataGridViewRow and update a connected database table?
body: <p>I have a <code>DataGridView</code> control on a Windows Forms application (written with C#).  </p>
  
  <p>What I need is: when a user selects a DataGridViewRow, and then clicks on a 'Delete' button, the row should be deleted <strong>and</strong> next, the database needs to be updated using table adapters.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>private void btnDelete_Click(object sender, EventArgs e)
  {
      if (this.dataGridView1.SelectedRows.Count &gt; 0)
      {
          dataGridView1.Rows.RemoveAt(this.dataGridView1.SelectedRows[0].Index);
      }                
  }
  </code></pre>
  
  <p>Furthermore, this only deletes one row. I would like it where the user can select multiple rows.</p>