datagridview comboboxcolumn dropdown not work properly

0
0

hi dear

I have a problem in my program, and that is that in the datagridview combobox column, in the on EditingControlShowing event, I cast to datagridviewcomboboxedintgcontrol and set DroppedDown=true, but this combobox does not always open and always has the value of the dropdown and items, but sometimes it does not drop down, even when I call it.

Private Async Sub vsfGoodList_EditingControlShowing(sender As Object, e As DataGridViewEditingControlShowingEventArgs) Handles vsfGoodList.EditingControlShowing
Application.Update(Me, Async Sub()
If e.Control IsNot Nothing Then
If TypeOf e.Control Is Wisej.Web.DataGridViewComboBoxEditingControl Then
Dim comboCell As ComboBox = DirectCast(e.Control, ComboBox)
If comboCell IsNot Nothing Then
comboCell.AutoCompleteMode = Wisej.Web.AutoCompleteMode.Filter
comboCell.DroppedDown = True
End If

‘ comboCell.Focus()
End If
End If
End Sub)
End Sub

if async or sync sometimes  not work but items exists

Best regards

  • reza kaboli
    i want my user work only with keyboard when keydown ENTER key first combobox dropdown and my user select its items and press ENTER again and focus and editing next column
  • reza kaboli
    if you active contains filter for search combobox or comboboxcolumn very very good in future versions
  • You must to post comments
0
0

thx dear

  • You must to post comments
0
0

It drops down automatically. You are trying to change the default behavior and breaking it. Post a working small test case that opens in VS and runs. This way it’s easier to fix your code. It’s too much time to copy your snippet in a working project.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.