Step-by-step explanation:
private void btnDelete_Click(object sender, EventArgs e)
{
if (this.dataGridView1.SelectedRows.Count > 0)
dataGridView1.Rows.RemoveAt(this.dataGridView1.SelectedRows[0].Index);
}
3.3m questions
4.3m answers