質問編集履歴
2
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
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 <
|
17
|
+
for (int i = 0; i < . DataGridView.RowCount; i++)
|
18
18
|
{
|
19
|
-
if (Convert.ToBoolean(
|
19
|
+
if (Convert.ToBoolean(DataGridView Rows[i].Cells[0].Value))
|
20
20
|
{
|
21
|
-
this.updms(conn, tran, int.Parse(
|
21
|
+
this.updms(conn, tran, int.Parse(DataGridView .Rows[i].Cells[1].Value.ToString()),
|
22
|
-
|
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
|
+
}‘’’
|