回答編集履歴
1
再検証した
test
CHANGED
@@ -1,7 +1,23 @@
|
|
1
|
-
DataGridView1
|
1
|
+
Private Sub DataGridView1_CellValueChanged(ByVal sender As Object, _
|
2
2
|
|
3
|
-
|
3
|
+
ByVal e As DataGridViewCellEventArgs) _
|
4
4
|
|
5
|
-
DataGridView1.
|
5
|
+
Handles DataGridView1.CellValueChanged
|
6
6
|
|
7
|
+
If DataGridView1.Rows(e.RowIndex).Cells.Item("SEL").Value = True Then
|
8
|
+
|
9
|
+
If CInt(DataGridView1.Rows(e.RowIndex).Cells.Item("SURYO").Value) <= 10 Then
|
10
|
+
|
11
|
+
Label1.Text = "数量が10以下です。"
|
12
|
+
|
13
|
+
DataGridView1.Rows(e.RowIndex).Cells.Item("SEL").Value = False
|
14
|
+
|
15
|
+
Return
|
16
|
+
|
17
|
+
End If
|
18
|
+
|
19
|
+
End If
|
20
|
+
|
21
|
+
End Sub
|
22
|
+
|
7
|
-
で
|
23
|
+
実際のソースで検証しなおしました。
|