'Check box column index Private CheckColIndex As Integer = 0 Private Sub DataGridView3_CellValueChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView3.CellValueChanged 'Check the column index and if the check box is checked. If e.ColumnIndex = CheckColIndex Then Dim isChecked As Boolean = CType(Me.DataGridView3(e.ColumnIndex, e.RowIndex).Value, Boolean) If isChecked Then 'If check box is checked, uncheck all the rows, the current row would be checked later. For Each row As DataGridViewRow In Me.DataGridView3.Rows row.Cells(e.ColumnIndex).Value = False Next End If End If End Sub
Dim isChecked As Boolean = CType(Me.DataGridView3.Item(e.ColumnIndex, e.RowIndex).Value, Boolean)
NULL
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)