title: how to edit/delete records in a datagridview?
body: <p>I'm using this code for the deleting of records in a datagridview using VB.NET and SQL -12</p>
  
  <pre><code> Private Sub Delete_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Delete.Click
      If MessageBox.Show("delete this item?", "DELETE!", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) = Windows.Forms.DialogResult.Yes Then
          Me.DataGridView.Rows.RemoveAt(Me.DataGridView.CurrentRow.)
      Else
          DataGridView.Update()
      End If
  End Sub
  </code></pre>
  
  <p>When I'm using this, the record only gets deleted temporarily but not permanently from the database. How should I delete the records permanently?
  The same is the case when I'm editing a field. It's just temporary.</p>