30-11-13, 11:40 AM
ممكن تستفاد من الكود التالي لمعالجة الحقل الفارغ
textbox1[/php] = Val(DataGridView1.CurrentRow.Cells(0).Value) + IIf(DataGridView1.CurrentRow.Cells(1).Value Is DBNull.Value, 0, DataGridView1.CurrentRow.Cells(1).Value)
textbox1[/php] = Val(DataGridView1.CurrentRow.Cells(0).Value) + IIf(DataGridView1.CurrentRow.Cells(1).Value Is DBNull.Value, 0, DataGridView1.CurrentRow.Cells(1).Value)

