I am having trouble with an editable combobox for a datagridview. The coe I am using has been obtained from Here:
I using this code:
Private Sub dgvCreditorInvoiceDetail_E
(ByVal sender As Object, ByVal e As System.Windows.Forms.DataG
entArgs) Handles dgvCreditorInvoiceDetail.E
Address.X = accountComboBox.DisplayInd
Dim cmb As ComboBox = CType(e.Control, ComboBox)
If Not cmb Is Nothing Then
cmb.DropDownStyle = ComboBoxStyle.DropDown
My problem is that the line with "accountComboBox.DisplayIn
dex has a value of "-1" and so skips the rest of the lines and this was for the combobox I wanted to be editable.
" equals 0...
What am I missing here? How can I get this combobox to be editable?