keoyang 0 Newbie Poster

My coding as below but it didn't display member as SuggestAppend it display only base on ComboBox width.

'Private Sub dgvList_EditingControlShowing(ByVal sender As System.Object, ByVal e As ' 'System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles dgvList.EditingControlShowing

'    Dim comboBox As ComboBox = CType(e.Control, ComboBox)
'    If (comboBox IsNot Nothing) Then
'        comboBox.DropDownStyle = ComboBoxStyle.DropDown
'        comboBox.AutoCompleteMode = Windows.Forms.AutoCompleteMode.SuggestAppend
'        comboBox.AutoCompleteSource = Windows.Forms.AutoCompleteSource.ListItems
'    End If
'End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.