【发布时间】:2014-04-30 03:09:16
【问题描述】:
成绩簿 - 我有 5 个单元格(Homeworks、Ex1、Ex2、Ex3、FinalExam)来填写 Datagridview,我的应用程序使用正常数字,但是当用户在单元格中键入“0”时,成绩不会显示。 (不是总和)。这是我的源代码示例:
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"
【问题讨论】:
标签: c# vb.net visual-studio visual-studio-2012 datagridview