Hi Folks
As a newbie, my datagrid (dgvExamScores)has column4 and column5 (and othercolumns)
column4 values depend on column5 values. Code works fine.
PROBLEM:
when I delete a column5 value, I expect the corresponding column4 to be deleted but this is not the case.
Just where have I erred in my code below.
Is this the correct event to use?
Private Sub dgvExamScores_CellValidated(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgvExamScores.CellValidated
For i As Int32 = 0 To Me.dgvExamScores.Rows.Count - 1
If Not IsDBNull(Me.dgvExamScores.Rows(i).Cells(5).Value) Then
Me.dgvExamScores.Rows(i).Cells(4).Value = Me.txtCreditValue.Text
Else
IsDBNull(Me.dgvExamScores.Rows(i).Cells(4).Value)
End If
Next
End Sub