07-10-16, 10:12 AM
اسف لم اضف الكود كامل هذا الكود
index.DataGridView.DataSource = dt
For Each rc As DataGridViewRow In index.DataGridView.Rows
sumc1 = Val(rc.Cells(0).Value) - Val(rc.Cells(1).Value)
rc.Cells(2).Value = Format(sumc1, "###.##")
Next
index.DataGridView.DataSource = dt
For Each rc As DataGridViewRow In index.DataGridView.Rows
sumc1 = Val(rc.Cells(0).Value) - Val(rc.Cells(1).Value)
rc.Cells(2).Value = Format(sumc1, "###.##")
Next
