質問編集履歴

4

コードをインデントで囲いました。

2019/08/03 05:37

投稿

bjjdai
bjjdai

スコア7

test CHANGED
File without changes
test CHANGED
@@ -25,6 +25,8 @@
25
25
 
26
26
 
27
27
  ### 該当のソースコード
28
+
29
+ ```
28
30
 
29
31
  using System;
30
32
 
@@ -58,9 +60,7 @@
58
60
 
59
61
  {
60
62
 
61
- ```
62
-
63
- InitializeComponent();
63
+ InitializeComponent();
64
64
 
65
65
  DataGridViewCheckBoxColumn column = new DataGridViewCheckBoxColumn();
66
66
 
@@ -69,8 +69,6 @@
69
69
  for (int i = 0; i < dataGridView1.RowCount; i++) ;
70
70
 
71
71
  if (Convert.ToBoolean(new DataGridViewCheckBoxColumn()));
72
-
73
- ```
74
72
 
75
73
 
76
74
 
@@ -88,15 +86,11 @@
88
86
 
89
87
  {
90
88
 
91
- ```
89
+ int Row = this.dataGridView1.Rows.Add();
92
90
 
93
- int Row = this.dataGridView1.Rows.Add();
94
-
95
- this.dataGridView1.Rows[Row].Cells[1].Value = dateTimePicker1.Value.ToString();
91
+ this.dataGridView1.Rows[Row].Cells[1].Value = DateTimePicker1.Value.ToString();
96
92
 
97
93
  this.dataGridView1.Rows[Row].Cells[2].Value = textBox1.Text;
98
-
99
- ```
100
94
 
101
95
 
102
96
 
@@ -128,11 +122,7 @@
128
122
 
129
123
  {
130
124
 
131
- ```
132
-
133
- Convert.ToBoolean(dataGridView1.Rows[1].Cells[0].Value);
125
+ Convert.ToBoolean(dataGridView1.Rows[1].Cells[0].Value);
134
-
135
- ```
136
126
 
137
127
  }
138
128
 
@@ -142,11 +132,7 @@
142
132
 
143
133
  {
144
134
 
145
- ```
146
-
147
- this.dataGridView1.CurrentCell.Value = DBNull.Value;
135
+ this.dataGridView1.CurrentCell.Value = DBNull.Value;
148
-
149
- ```
150
136
 
151
137
 
152
138
 
@@ -166,6 +152,8 @@
166
152
 
167
153
  }
168
154
 
155
+ ```
156
+
169
157
 
170
158
 
171
159
  ### 試したこと

3

コードをインデントで囲いました。

2019/08/03 05:37

投稿

bjjdai
bjjdai

スコア7

test CHANGED
File without changes
test CHANGED
@@ -58,7 +58,7 @@
58
58
 
59
59
  {
60
60
 
61
- '''
61
+ ```
62
62
 
63
63
  InitializeComponent();
64
64
 
@@ -70,7 +70,7 @@
70
70
 
71
71
  if (Convert.ToBoolean(new DataGridViewCheckBoxColumn()));
72
72
 
73
- '''
73
+ ```
74
74
 
75
75
 
76
76
 
@@ -88,7 +88,7 @@
88
88
 
89
89
  {
90
90
 
91
- '''
91
+ ```
92
92
 
93
93
  int Row = this.dataGridView1.Rows.Add();
94
94
 
@@ -96,7 +96,7 @@
96
96
 
97
97
  this.dataGridView1.Rows[Row].Cells[2].Value = textBox1.Text;
98
98
 
99
- '''
99
+ ```
100
100
 
101
101
 
102
102
 
@@ -128,11 +128,11 @@
128
128
 
129
129
  {
130
130
 
131
- '''
131
+ ```
132
132
 
133
133
  Convert.ToBoolean(dataGridView1.Rows[1].Cells[0].Value);
134
134
 
135
- '''
135
+ ```
136
136
 
137
137
  }
138
138
 
@@ -142,11 +142,11 @@
142
142
 
143
143
  {
144
144
 
145
- '''
145
+ ```
146
146
 
147
147
  this.dataGridView1.CurrentCell.Value = DBNull.Value;
148
148
 
149
- '''
149
+ ```
150
150
 
151
151
 
152
152
 

2

コードをインデントで囲いました。

2019/08/03 05:20

投稿

bjjdai
bjjdai

スコア7

test CHANGED
File without changes
test CHANGED
@@ -58,7 +58,9 @@
58
58
 
59
59
  {
60
60
 
61
+ '''
62
+
61
- 'InitializeComponent();
63
+ InitializeComponent();
62
64
 
63
65
  DataGridViewCheckBoxColumn column = new DataGridViewCheckBoxColumn();
64
66
 
@@ -66,7 +68,9 @@
66
68
 
67
69
  for (int i = 0; i < dataGridView1.RowCount; i++) ;
68
70
 
69
- if (Convert.ToBoolean(new DataGridViewCheckBoxColumn()));'
71
+ if (Convert.ToBoolean(new DataGridViewCheckBoxColumn()));
72
+
73
+ '''
70
74
 
71
75
 
72
76
 
@@ -84,11 +88,15 @@
84
88
 
85
89
  {
86
90
 
91
+ '''
92
+
87
- 'int Row = this.dataGridView1.Rows.Add();
93
+ int Row = this.dataGridView1.Rows.Add();
88
94
 
89
95
  this.dataGridView1.Rows[Row].Cells[1].Value = dateTimePicker1.Value.ToString();
90
96
 
91
- this.dataGridView1.Rows[Row].Cells[2].Value = textBox1.Text;'
97
+ this.dataGridView1.Rows[Row].Cells[2].Value = textBox1.Text;
98
+
99
+ '''
92
100
 
93
101
 
94
102
 
@@ -120,7 +128,11 @@
120
128
 
121
129
  {
122
130
 
131
+ '''
132
+
123
- 'Convert.ToBoolean(dataGridView1.Rows[1].Cells[0].Value);'
133
+ Convert.ToBoolean(dataGridView1.Rows[1].Cells[0].Value);
134
+
135
+ '''
124
136
 
125
137
  }
126
138
 
@@ -130,7 +142,11 @@
130
142
 
131
143
  {
132
144
 
145
+ '''
146
+
133
- ' this.dataGridView1.CurrentCell.Value = DBNull.Value;'
147
+ this.dataGridView1.CurrentCell.Value = DBNull.Value;
148
+
149
+ '''
134
150
 
135
151
 
136
152
 

1

コードをインデントで囲いました。

2019/08/03 03:04

投稿

bjjdai
bjjdai

スコア7

test CHANGED
File without changes
test CHANGED
@@ -58,7 +58,7 @@
58
58
 
59
59
  {
60
60
 
61
- InitializeComponent();
61
+ 'InitializeComponent();
62
62
 
63
63
  DataGridViewCheckBoxColumn column = new DataGridViewCheckBoxColumn();
64
64
 
@@ -66,7 +66,7 @@
66
66
 
67
67
  for (int i = 0; i < dataGridView1.RowCount; i++) ;
68
68
 
69
- if (Convert.ToBoolean(new DataGridViewCheckBoxColumn()));
69
+ if (Convert.ToBoolean(new DataGridViewCheckBoxColumn()));'
70
70
 
71
71
 
72
72
 
@@ -84,11 +84,11 @@
84
84
 
85
85
  {
86
86
 
87
- int Row = this.dataGridView1.Rows.Add();
87
+ 'int Row = this.dataGridView1.Rows.Add();
88
88
 
89
89
  this.dataGridView1.Rows[Row].Cells[1].Value = dateTimePicker1.Value.ToString();
90
90
 
91
- this.dataGridView1.Rows[Row].Cells[2].Value = textBox1.Text;
91
+ this.dataGridView1.Rows[Row].Cells[2].Value = textBox1.Text;'
92
92
 
93
93
 
94
94
 
@@ -120,7 +120,7 @@
120
120
 
121
121
  {
122
122
 
123
- Convert.ToBoolean(dataGridView1.Rows[1].Cells[0].Value);
123
+ 'Convert.ToBoolean(dataGridView1.Rows[1].Cells[0].Value);'
124
124
 
125
125
  }
126
126
 
@@ -130,7 +130,7 @@
130
130
 
131
131
  {
132
132
 
133
- this.dataGridView1.CurrentCell.Value = DBNull.Value;
133
+ ' this.dataGridView1.CurrentCell.Value = DBNull.Value;'
134
134
 
135
135
 
136
136