It is used for check only one check box in a column.
Private Sub DataGridView1_CellBeginEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellCancelEventArgs) Handles DataGridView1.CellBeginEdit
Dim i As Integer = 0
While (i <> Me.DataGridView1.Rows.Count)
Me.DataGridView1.Item(e.ColumnIndex, i).Value = False
i = i + 1
End While
End Sub
It is used to check only one check box in a row
Private Sub DataGridView1_CellBeginEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellCancelEventArgs) Handles DataGridView1.CellBeginEdit
Dim i As Integer = 0
While (i <> Me.DataGridView1.Columns.Count)
Me.DataGridView1.Item(i, e.RowIndex).Value = False
i = i + 1
End While
End Sub