Hi all,
I have the following codes:
I am wondering why my "colchkSelect" will be checked even though the above codes showing that it should not be checked when the cell click event?Code:Private Sub dgCustomerPackage_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgCustomerPackage.CellClick If TypeOf dgCustomerPackage.CurrentCell Is DataGridViewCheckBoxCell Then If 1 + 1 = 2 Then dgCustomerPackage.CurrentRow.Cells("colchkSelect").Value = 0 Else dgCustomerPackage.CurrentRow.Cells("colchkSelect").Value = 1 End If End If End Sub




Reply With Quote