Private Sub btnDelete_Click(sender As Object, e As EventArgs) Handles btnDelete.Click For i As Integer = dataGVGeneral.Rows.Count() - 1 To 0 Step -1 Dim Delete As Boolean Delete = dataGVGeneral.Rows(i).Cells(8).Value 'If checkbox cell is checked If Delete = True Then Dim row As DataGridViewRow row = dataGVGeneral.Rows(i) dataGVGeneral.Rows.Remove(row) End If Next End Sub End Class
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)