How to delete DataGridView Row after Selecting Row from Database Using Delete Button

Recommended Answers

Without more specific details, all i can comment regarding you question is to remove the row from your datagrid by using the RemoveAt() method.

dataGridView1.Rows.RemoveAt(dataGridView1.SelectedRows[i].Index);
Jump to Post

All 3 Replies

Without more specific details, all i can comment regarding you question is to remove the row from your datagrid by using the RemoveAt() method.

dataGridView1.Rows.RemoveAt(dataGridView1.SelectedRows[i].Index);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.