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

質問編集履歴

1

修正

2016/01/12 09:04

投稿

fender0131
fender0131

スコア121

title CHANGED
File without changes
body CHANGED
@@ -11,9 +11,9 @@
11
11
 
12
12
  2.フォーカス移動させないセルにフォーカスが移った際に、フォーカス移動させるセルにフォーカスを移す。
13
13
 
14
- if(dataGridView1.CurrentCellAddress.X == 1 && dataGridView1.CurrentCellAddress.Y == 1)
14
+ if(dataGridView1.CurrentCellAddress.X == 0 && dataGridView1.CurrentCellAddress.Y == 0)
15
15
  {
16
- dataGridView1[0, 5].Focus();
16
+ dataGridView1[1, 0].Focus();
17
17
  }
18
18
 
19
19
  → エラーが発生しました。