title: How to use DataGridView and a button to delete a SQL entry in my DataGridView
body: <p>So I've got my SQL connection setup and working and it pulls and binds the data to the datagridview. I have an update button that pushes the edited data back to the SQL server.</p>
  
  <pre><code>Private Sub DeleteButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles DeleteButton.Click
      'Delete Current Cell Data 
      Dim deleteCmd As String = "Delete FROM Contacts WHERE au_id = @Id;"
      Dim myCommand As SqlCommand = New SqlCommand(deleteCmd)
      myCommand.Parameters.Add(New SqlParameter("@Id", SqlDbType.VarChar, 11))
  
      'Start the SqlCommand "@Id" parameter to the ID of the row that was clicked.
      myCommand.Parameters("@Id").Value = DataGridView1.SelectedCells
  </code></pre>
  
  <p>Now I am currently working on getting a delete button to function. Basically I need it to Delete the row of data that is currently selected.</p>