回答編集履歴
2
リンク切れ
answer
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
[c# - Datagridview causing IndexOutOfRangeException when clicked upon - Stack Overflow](https://stackoverflow.com/questions/930069/datagridview-causing-indexoutofrangeexception-when-clicked-upon)
|
6
6
|
|
7
|
-
[DataGridView IndexOutOfRangeException](https://social.msdn.microsoft.com/Forums/windows/en-US/e25c11ab-15e1-4927-b0ee-b9ace044414a/datagridview-indexoutofrangeexception?forum=winforms)
|
7
|
+
[DataGridView IndexOutOfRangeException](https://web.archive.org/web/20141007045541/https://social.msdn.microsoft.com/Forums/windows/en-US/e25c11ab-15e1-4927-b0ee-b9ace044414a/datagridview-indexoutofrangeexception?forum=winforms)
|
8
8
|
|
9
9
|
こういう状態にはできないんでしょうか?
|
10
10
|
```cs
|
1
見直しキャンペーン中
answer
CHANGED
@@ -1,27 +1,27 @@
|
|
1
|
-
カラのリストを入れるのが原因っぼいですね。
|
1
|
+
カラのリストを入れるのが原因っぼいですね。
|
2
|
-
|
2
|
+
|
3
|
-
[DataGridViewで行にデータがあるのに、「インデックス -1に値がありません。」というエラーが発生する件の解決法 - modest violet](https://shin21.hatenablog.com/entry/2016/03/11/215257)
|
3
|
+
[DataGridViewで行にデータがあるのに、「インデックス -1に値がありません。」というエラーが発生する件の解決法 - modest violet](https://shin21.hatenablog.com/entry/2016/03/11/215257)
|
4
|
-
|
4
|
+
|
5
|
-
[c# - Datagridview causing IndexOutOfRangeException when clicked upon - Stack Overflow](https://stackoverflow.com/questions/930069/datagridview-causing-indexoutofrangeexception-when-clicked-upon)
|
5
|
+
[c# - Datagridview causing IndexOutOfRangeException when clicked upon - Stack Overflow](https://stackoverflow.com/questions/930069/datagridview-causing-indexoutofrangeexception-when-clicked-upon)
|
6
|
-
|
6
|
+
|
7
|
-
[DataGridView IndexOutOfRangeException](https://social.msdn.microsoft.com/Forums/windows/en-US/e25c11ab-15e1-4927-b0ee-b9ace044414a/datagridview-indexoutofrangeexception?forum=winforms)
|
7
|
+
[DataGridView IndexOutOfRangeException](https://social.msdn.microsoft.com/Forums/windows/en-US/e25c11ab-15e1-4927-b0ee-b9ace044414a/datagridview-indexoutofrangeexception?forum=winforms)
|
8
|
-
|
8
|
+
|
9
|
-
こういう状態にはできないんでしょうか?
|
9
|
+
こういう状態にはできないんでしょうか?
|
10
|
-
```
|
10
|
+
```cs
|
11
|
-
private void Form1_Shown(object sender, EventArgs e)
|
11
|
+
private void Form1_Shown(object sender, EventArgs e)
|
12
|
-
{
|
12
|
+
{
|
13
|
-
List<string> StringList1 = new List<string>();
|
13
|
+
List<string> StringList1 = new List<string>();
|
14
|
-
//dataGridView1.DataSource = StringList1;
|
14
|
+
//dataGridView1.DataSource = StringList1;
|
15
|
-
|
15
|
+
|
16
|
-
StringList1.Add("あいうえお");
|
16
|
+
StringList1.Add("あいうえお");
|
17
|
-
StringList1.Add("かきくけこ");
|
17
|
+
StringList1.Add("かきくけこ");
|
18
|
-
|
18
|
+
|
19
|
-
dataGridView1.DataSource = StringList1;
|
19
|
+
dataGridView1.DataSource = StringList1;
|
20
|
-
}
|
20
|
+
}
|
21
|
-
```
|
21
|
+
```
|
22
|
-
|
22
|
+
|
23
|
-
---
|
23
|
+
---
|
24
|
-
|
24
|
+
|
25
|
-
「.NET5や6で直ってたりしないかな?」と、確認してみましたが変わらずでした^^;
|
25
|
+
「.NET5や6で直ってたりしないかな?」と、確認してみましたが変わらずでした^^;
|
26
|
-
ざっとイシューも見てみましたが、見当たりませんでした。
|
26
|
+
ざっとイシューも見てみましたが、見当たりませんでした。
|
27
27
|
[Issues · dotnet/winforms](https://github.com/dotnet/winforms/issues)
|