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);
}
1.6m questions
2.0m answers