我希望更改自动完成列表的位置以及高度和宽度。我希望对datagridviewcombobox做同样的事情
我已经尝试过显示自动完成列表的控件
Private Sub DataGridView1_EditingControlShowing(sender As Object, e As DataGridViewEditingControlShowingEventArgs) Handles DataGridView1.EditingControlShowing
If TypeOf e.Control Is DataGridViewComboBoxEditingControl Then
CType(e.Control, ComboBox).DropDownStyle = ComboBoxStyle.Simple
CType(e.Control, ComboBox).AutoCompleteSource = AutoCompleteSource.ListItems
CType(e.Control, ComboBox).AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend
End If
End Sub