Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick Dim pcount As Integer = 0 For Each row As DataGridViewRow In DataGridView1.Rows If row.Cells(0).Value = True Then pcount += 1 End If Next Label2.Text = pcount End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)