I am looping backwards through my datagridview and removing any rows where the checkbox column is checked. However, it does not see all the checked checkboxes and therefor is not deleteing all the rows that are checked. I cannot for the life of me figure out why! Here is my code:
Code:For i As Integer = DataGridView1.Rows.Count - 1 To 0 Step -1 If DataGridView1.Rows(i).Cells(0).Value = True Then DataGridView1.Rows.RemoveAt(i) Else End If Next i




Reply With Quote
