Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
dim ID as string
ID = DataGridView1.CurrentRow.Cells(0).Value.ToString()
MsgBox(ID)
For i As Integer = 0 To Me.DataGridView1.Rows.Count - 1
If Me.DataGridView1.Rows(i).Cells(2).Value = True Then
MsgBox("选中")
End If
Next
'假设你的checkbox列是第3列