We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click For Each row As DataGridViewRow In DataGridView1.Rows If (row.Cells.Item(0).Value = CheckState.Checked) Then DataGridView1.Rows.RemoveAt(0) 'This way doesn't work DataGridView1.Rows.Remove(DataGridView1.SelectedRows(0)) 'This way doesn't work either End If Next End Sub
Join the community of 500,000 technology professionals and ask your questions.