I need help on DataGridView CheckBox. How can make a button enable or visible while only one checkBox of a datagrideview is checked?
I tryed this , and it works but it only works when the datagrideview checkbox column is selected but i need when only one checkbox is checked then the button will enable or visible, please help me.
Private Sub dgvEmployee_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgvEmployee.CellClick
If dgvEmployee.Item(clmCheck.Index, e.RowIndex).Selected = True Then
btnEdit.Enabled = True
Else
btnEdit.Enabled = False
End If
End Sub