質問編集履歴

2

2020/06/10 23:58

投稿

chemistryng1234
chemistryng1234

スコア0

test CHANGED
File without changes
test CHANGED
@@ -27,49 +27,3 @@
27
27
  分かる方知識をお貸しください。
28
28
 
29
29
  よろしくお願いします。
30
-
31
- ‘’’
32
-
33
- for (int i = 0; i < . DataGridView.RowCount; i++)
34
-
35
- {
36
-
37
- if (Convert.ToBoolean(DataGridView Rows[i].Cells[0].Value))
38
-
39
- {
40
-
41
- this.updms(conn, tran, int.Parse(DataGridView .Rows[i].Cells[1].Value.ToString()),
42
-
43
- DataGridView .Rows[i].Cells[2].Value.ToString()
44
-
45
- );
46
-
47
-
48
-
49
- flg = true;
50
-
51
- }
52
-
53
-
54
-
55
- }
56
-
57
- if (flg == true)
58
-
59
- {
60
-
61
- tran.Commit()
62
-
63
- }
64
-
65
- }
66
-
67
- catch (Exception)
68
-
69
- {
70
-
71
- tran.Rollback();
72
-
73
- }
74
-
75
- }‘’’

1

2020/06/10 23:58

投稿

chemistryng1234
chemistryng1234

スコア0

test CHANGED
File without changes
test CHANGED
@@ -28,19 +28,19 @@
28
28
 
29
29
  よろしくお願いします。
30
30
 
31
+ ‘’’
31
32
 
32
-
33
- for (int i = 0; i < dataGridView1.RowCount; i++)
33
+ for (int i = 0; i < . DataGridView.RowCount; i++)
34
34
 
35
35
  {
36
36
 
37
- if (Convert.ToBoolean(dataGridView1.Rows[i].Cells[0].Value))
37
+ if (Convert.ToBoolean(DataGridView Rows[i].Cells[0].Value))
38
38
 
39
39
  {
40
40
 
41
- this.updms(conn, tran, int.Parse(dataGridView1.Rows[i].Cells[1].Value.ToString()),
41
+ this.updms(conn, tran, int.Parse(DataGridView .Rows[i].Cells[1].Value.ToString()),
42
42
 
43
- dataGridView1.Rows[i].Cells[2].Value.ToString()
43
+ DataGridView .Rows[i].Cells[2].Value.ToString()
44
44
 
45
45
  );
46
46
 
@@ -72,4 +72,4 @@
72
72
 
73
73
  }
74
74
 
75
- }
75
+ }‘’’