N
noob
Hi
I am having issues with a combobox column in a datagridview with virtual
mode enabled. I am binding data to both the datagrid and combobox from
an sql database. Everything works fine however when I select an item in
the combobox and move onto the next row, the item dissapears from the
combobox and it moves back to a blank state. I have put a break point
at: (and it fires off when I click the drop down on the combobox). Can
anyone suggest a solution.
Private Sub DataGridView1_EditingControlShowing(ByVal sender As
System.Object, ByVal e As DataGridViewEditingControlShowingEventArgs)
Handles DataGridView1.EditingControlShowing
Dim editingComboBox As ComboBox = CType(e.Control, ComboBox)
AddHandler editingComboBox.SelectedIndexChanged, AddressOf
Me.editingComboBox_SelectedIndexChanged
End Sub
I am having issues with a combobox column in a datagridview with virtual
mode enabled. I am binding data to both the datagrid and combobox from
an sql database. Everything works fine however when I select an item in
the combobox and move onto the next row, the item dissapears from the
combobox and it moves back to a blank state. I have put a break point
at: (and it fires off when I click the drop down on the combobox). Can
anyone suggest a solution.
Private Sub DataGridView1_EditingControlShowing(ByVal sender As
System.Object, ByVal e As DataGridViewEditingControlShowingEventArgs)
Handles DataGridView1.EditingControlShowing
Dim editingComboBox As ComboBox = CType(e.Control, ComboBox)
AddHandler editingComboBox.SelectedIndexChanged, AddressOf
Me.editingComboBox_SelectedIndexChanged
End Sub