0
成绩簿 - 我有5个单元格(Homeworks,Ex1,Ex2,Ex3,FinalExam)填写Datagridview,我的应用程序与正常数字一起工作,但当用户在“0”单元然后等级不会显示。 (不是总和)。这里是我的源代码示例:VB.NET - 如果不Datagridview单元格为空
Total = Val(HW + Ex1 + Ex2 + Ex3 + FinalEx)/5
If Not (DataGridView1.Rows(i).Cells(2).Value) = String.Empty And
(DataGridView1(i).Cells(3).Value) And (DataGridView1(i).Cells(4).Value) And
(DataGridView1.Rows(i).Cells(5).Value) And (DataGridView1.Rows(i).Cells(6).Value) Then
If Total >= 90 Then
DataGridView1(i).Cells(7).Value = "A"
是的,如果我想输入所有0 IF不工作。 (而不是总和)如果我只输入一个“0”。 (非总和)。是的,我有一个80岁以下的价值条件。70. 60. etc ... – user3587597
你可以显示其余的条件?也许这是问题? – b3ko