0

I have created Datagridviewcomboboxcells as follows, each of which have 2-3 items. I'm able to see the Datagridviewcomboboxcells with the appropriate values inside the comboboxcell, but I'm not able to see the dropdown list when i click on the comboboxcell.

Should I write a separate event handler to display the dropdown list ? Does it not dropdown by default ?

        Dim Dgv2cb_ColdStart As New DataGridViewComboBoxCell
        Dgv2cb_ColdStart.Items.Add("C:\pd_DelAll.pl")
        Dgv2cb_ColdStart.Items.Add("No Cold Start")


        dgv2.Rows.Add("ColdStart")
        dgv2.Rows(rowIndex).Cells(1) = Dgv2cb_ColdStart
        If temp_profile.ColdStart = "" Then
            dgv2.Rows(rowIndex).Cells(1).Value = Dgv2cb_ColdStart.Items(1)
        Else
            dgv2.Rows(rowIndex).Cells(1).Value = Dgv2cb_ColdStart.Items(0)
        End If

Surprising thing is the same code on another backup of the project works, but that is an older version that i can't use now. I'm not able to reproduce the error, as to what is causing the dropdown not to occur.

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
Sharat Chandra
  • 4,434
  • 7
  • 49
  • 66
  • Have you tried clicking it twice? For me it doesn't show up on the first click. – WozzeC Oct 22 '12 at 06:29
  • 1
    This had apparantly been asked before on SO: http://stackoverflow.com/questions/241100/how-to-manually-drop-down-a-datagridviewcomboboxcolumn – WozzeC Oct 22 '12 at 06:38
  • No, It does not dropdown even after double-click. – Sharat Chandra Oct 22 '12 at 16:59
  • @WozzeC - I don't think so... this OP does not necessarily want to open the DDL manually - just willing to resort to that if no other solution is available. – JDB Oct 22 '12 at 17:55

0 Answers0