08-01-17, 11:28 PM
السلام عليكم
تفضل الكود
تفضل الكود
كود :
Private Sub DataGridView1_CellEndEdit(sender As Object, e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit
Dim v1 As Double = CDbl(DataGridView1.CurrentRow.Cells(1).Value)
Dim v2 As Double = CDbl(DataGridView1.CurrentRow.Cells(2).Value)
DataGridView1.CurrentRow.Cells(3).Value = v2 - v1
End Sub

