11-11-20, 11:10 PM
(آخر تعديل لهذه المشاركة : 12-11-20, 01:33 AM {2} بواسطة Amir_Alzubidy.)
السلام عليكم جميعا من فضلكم طريقة جمع خانتين في القريد كونترول جزاكم الله خيرا
كما في الصورة
أو تحويل الكود من DataGridView1 إلى gridcontrol بال devexpress
Sub calculerItem()
Dim ach, tovent As Double
For I = 0 To DataGridView1.Rows.Count - 1
ach = Val(ach) + DataGridView1.Rows(I).Cells(4).Value
tovent = Val(DataGridView1.Rows(I).Cells(5).Value) * Val(DataGridView1.Rows(I).Cells(6).Value)
Val(ach) = Val(tovent)
Next
End Sub
كما في الصورة
أو تحويل الكود من DataGridView1 إلى gridcontrol بال devexpress
Sub calculerItem()
Dim ach, tovent As Double
For I = 0 To DataGridView1.Rows.Count - 1
ach = Val(ach) + DataGridView1.Rows(I).Cells(4).Value
tovent = Val(DataGridView1.Rows(I).Cells(5).Value) * Val(DataGridView1.Rows(I).Cells(6).Value)
Val(ach) = Val(tovent)
Next
End Sub