回答編集履歴

1

再検証した

2017/11/16 05:50

投稿

Hornet250
Hornet250

スコア16

test CHANGED
@@ -1,7 +1,23 @@
1
- DataGridView1.Rows(e.RowIndex).Cells.Item("SEL").Value= 0
1
+ Private Sub DataGridView1_CellValueChanged(ByVal sender As Object, _
2
2
 
3
- または
3
+ ByVal e As DataGridViewCellEventArgs) _
4
4
 
5
- DataGridView1.Rows(e.RowIndex).Cells.Item("SEL").Value= Not True
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
+ 実際のソース検証しなおしした。