I am working in Microsoft visual Studio Express 2013 with an sql back end. I have a checkbox column in a DGV and I am having a problem where when I change the check state of a checkbox in the column, the actual code dosen't run until I leave the cell. I tried using the dirty cell state change but once I do that my code no longer recognizes e.rowindex or e.columnindex. Is there an event I can use that will run code as soon as the checkbox is toggled and will still recognize the e.rowindex and e.columnindex code?
Private Sub DGVCutList_CurrentCellChanged(sender As Object, e As EventArgs) Handles DGVCutList.CurrentCellChanged
If e.RowIndex = -1 Then
Exit Sub
End If
end sub
Aucun commentaire:
Enregistrer un commentaire