i have datagridview for displaying and records and to remove the rows the dgv is having a checkbox for selecting the rows to remove
i did in the following way
but when i am selecting all rows suppose their are 8 rows so it removes only 4Code:For Each row As DataGridViewRow In dgAllBags.Rows If row.Cells("Checkbox").Value = True Then dgAllBags.Rows.Remove(row) End If Next