I have a datagridviewcombobox which I have made editable.
The problem is, when I go and click on it I find it automatically populates the combobox with the first item in the drop down. See the following to see what I mean
I have used the following code to make it editable. - see the code area.
I want to click on any combobox in this column and be able to type without starting with the first item in it.
I thought you might be able to use selectionStart but I dont know how to apply it - if that is the answer..
Private Sub dgvCreditorInvoiceDetail_EditingControlShowing(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles dgvCreditorInvoiceDetail.EditingControlShowing
If (TypeOf e.Control Is DataGridViewComboBoxEditingControl) Then
Dim cmb As DataGridViewComboBoxEditingControl = CType(e.Control, DataGridViewComboBoxEditingControl)
If (Not cmb Is Nothing) And (dgvCreditorInvoiceDetail.CurrentCellAddress.X = 0) Then
cmb.DropDownStyle = ComboBoxStyle.DropDown