03-06-20, 01:48 PM
(آخر تعديل لهذه المشاركة : 03-06-20, 01:49 PM {2} بواسطة asemshahen5.)
PHP كود :
Private Sub DataGridView1_CellEndEdit(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit
If e.ColumnIndex = 3 Then
Dim IQty, SQty As Double
IQty = Val(DataGridView1(2, DataGridView1.CurrentRow.Index).Value)
SQty = Val(DataGridView1(3, DataGridView1.CurrentRow.Index).Value)
If SQty > IQty Then
MsgBox("الكمية المطلوبة أكبر من الكمية المتاحة")
Return
End If
End If
End Sub
سبحان الله وبحمده سبحان الله العظيم و الحمد لله ولا اله الا الله والله اكبر
