How can I delete a DataGridView row via a button on the row?
screenshot: http://i.imgur.com/8342MKT.png
When the user clicks the '삭제' button on a row, I want to delete that row.
I tried this:
For Each row As DataGridViewRow In DataGridView1.SelectedRows
DataGridView1.Rows.Remove(row)
Next
But although this worked for a button outside the DataGridView, it doesn't work with a button in the DataGridView.
How can I make this work with the button in the DataGridView?
Best Answer