Basically, in my first column I have checkboxes that are unbound.
I would either like to be able to remove the row by checking the checkboxes or clicking a button after a checkbox(s) are checked.
I have some code below that I 've been working with which I found on the web, but it's not working..
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