質問するログイン新規登録

質問編集履歴

2

2020/06/10 23:58

投稿

chemistryng1234
chemistryng1234

スコア0

title CHANGED
File without changes
body CHANGED
@@ -12,27 +12,4 @@
12
12
  また、0.1の値をDBに更新させたいのですがSQLとcommand.parameters,addについかするValueをなににすればいいかわかりません。
13
13
 
14
14
  分かる方知識をお貸しください。
15
- よろしくお願いします。
15
+ よろしくお願いします。
16
- ‘’’
17
- for (int i = 0; i < . DataGridView.RowCount; i++)
18
- {
19
- if (Convert.ToBoolean(DataGridView Rows[i].Cells[0].Value))
20
- {
21
- this.updms(conn, tran, int.Parse(DataGridView .Rows[i].Cells[1].Value.ToString()),
22
- DataGridView .Rows[i].Cells[2].Value.ToString()
23
- );
24
-
25
- flg = true;
26
- }
27
-
28
- }
29
- if (flg == true)
30
- {
31
- tran.Commit()
32
- }
33
- }
34
- catch (Exception)
35
- {
36
- tran.Rollback();
37
- }
38
- }‘’’

1

2020/06/10 23:58

投稿

chemistryng1234
chemistryng1234

スコア0

title CHANGED
File without changes
body CHANGED
@@ -13,13 +13,13 @@
13
13
 
14
14
  分かる方知識をお貸しください。
15
15
  よろしくお願いします。
16
-
16
+ ‘’’
17
- for (int i = 0; i < dataGridView1.RowCount; i++)
17
+ for (int i = 0; i < . DataGridView.RowCount; i++)
18
18
  {
19
- if (Convert.ToBoolean(dataGridView1.Rows[i].Cells[0].Value))
19
+ if (Convert.ToBoolean(DataGridView Rows[i].Cells[0].Value))
20
20
  {
21
- this.updms(conn, tran, int.Parse(dataGridView1.Rows[i].Cells[1].Value.ToString()),
21
+ this.updms(conn, tran, int.Parse(DataGridView .Rows[i].Cells[1].Value.ToString()),
22
- dataGridView1.Rows[i].Cells[2].Value.ToString()
22
+ DataGridView .Rows[i].Cells[2].Value.ToString()
23
23
  );
24
24
 
25
25
  flg = true;
@@ -35,4 +35,4 @@
35
35
  {
36
36
  tran.Rollback();
37
37
  }
38
- }
38
+ }‘’’