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

Recommended Answers

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.