hi,
I have a DGV control on my form that is populated with 2 columns (one is just a text column and the other is a checkbox column)
What I am trying to do is invoke a procedure when an action is performed on any given checkbox in the DGV.
The problem is that I am checking which row was changed and I am having troubles finding the DGV event that happens AFTER the checkbox state has changed.
sofar I tried CELLLEAVE,CELLCLICK,CELLENDEDIT etc. to no avail
so the question is which EVENT happens AFTER the content of the cell has been modified?
thanx
Below is an example which did NOT work
VB Code:
Private Sub DGFormTypes_CellLeave(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DGFormTypes.CellLeave Try If Me.DGFormTypes.RowCount > 0 Then If DGFormTypes.CurrentCell.ColumnIndex = 1 Then PopulateDGV() End If End If Catch ex As Exception Debug.WriteLine(ex.Message) End Try End Sub




Reply With Quote