(02-02-18, 02:11 AM)karimx كتب : [ -> ]السلام عليكم أخي العزيز ورحمة الله وبركاته
يمكنك تنفيذ العملية الحسابية في قاعدة البيانات من دون اللجوء إلى تنفيذ العملية من خلال الكود في المشروع.
ماهي الطريقة وما هو الكود ومكان الحدث ؟؟؟؟

سيدي الفاضل اعتقد ممكن هيك تزبط
For Each rc As DataGridViewRow In Me.DataGridView2.Rows
If DataGridView2.CurrentRow.Cells(2).Value = Nothing Then Return
If DataGridView2.CurrentRow.Cells(3).Value = Nothing Then Return
rc.Cells(5).Value = rc.Cells(2).Value * rc.Cells(3).Value
Next
ضع الكود ضمن الحدث CellEndEdit
انا جربتها تمام
اذا حابب تعمل كل سطر لحاله تفضل
If DataGridView2.CurrentRow.Cells(2).Value = Nothing Then Return
If DataGridView2.CurrentRow.Cells(3).Value = Nothing Then Return
DataGridView2.CurrentRow.Cells(5).Value = DataGridView2.CurrentRow.Cells(2).Value * DataGridView2.CurrentRow.Cells(3).Value
برضو ضمن الحدث CellEndEdit
اتمني ان اكون جاوبتك