في نفس gridview
يعني لما اضغط select في gridview ينقص لي cell(5 - cel3 ءيعطيني الجواب في نفس gridview
انا المشروع الي عندي استعارة كتاب
؟؟؟؟؟؟؟
ضروري الكود قبل تسليم مشروع التخرج
حتى لو طريقة غير
بس اهم شى نفس الفكرة
السلام عليكم
تفضل الكود
كود :
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
(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
يطلع لي eroor
(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
الخطا في CurrentRow و CellEndEdit
شكرا على المساعدة
غيرت CurrentRow الى selectvalue
و value الى text
صار صح