Public Class Form16 Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged Dim check As Boolean For i As Integer = 0 To DataGridView3.Rows.Count check = DataGridView3.Rows(i).Cells(1).Value If check Then Exit For End If Next If Not check Then MessageBox.Show("You didn't check any checkbox") End If End Sub End Class
DataGridView3.Rows.Count
For i As Integer = 0 To DataGridView3.Rows.Count - 1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)