質問編集履歴
1
コードの表示変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,33 +14,39 @@
|
|
14
14
|
|
15
15
|
作成した箇所抜粋になります。(VisualStudio2010Express)
|
16
16
|
|
17
|
+
```
|
18
|
+
|
17
|
-
|
19
|
+
Private Sub DGVSend_EditingControlShowing(sender As Object, e As System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles DGVSend.EditingControlShowing
|
18
20
|
|
19
21
|
|
20
22
|
|
21
|
-
|
23
|
+
Dim _dgv As DataGridView = DirectCast(sender, DataGridView)
|
22
24
|
|
23
|
-
|
25
|
+
If TypeOf e.Control Is DataGridViewTextBoxEditingControl AndAlso _dgv.CurrentCell.ColumnIndex = 1 Then
|
24
26
|
|
25
27
|
|
26
28
|
|
27
|
-
|
29
|
+
' 編集のために表示されているコントロールを取得 AutoComにはあらかじめString()を設定済み
|
28
30
|
|
29
|
-
|
31
|
+
Dim _txt As DataGridViewTextBoxEditingControl = CType(e.Control, DataGridViewTextBoxEditingControl)
|
30
32
|
|
31
|
-
|
33
|
+
_txt.AutoCompleteMode = AutoCompleteMode.SuggestAppend
|
32
34
|
|
33
|
-
|
35
|
+
_txt.AutoCompleteSource = AutoCompleteSource.CustomSource
|
34
36
|
|
35
|
-
|
37
|
+
_txt.AutoCompleteCustomSource = AutoComp
|
36
38
|
|
37
39
|
|
38
40
|
|
39
|
-
|
41
|
+
End If
|
40
42
|
|
41
43
|
|
42
44
|
|
43
|
-
|
45
|
+
End Sub
|
46
|
+
|
47
|
+
```
|
48
|
+
|
49
|
+
|
44
50
|
|
45
51
|
|
46
52
|
|