Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. One-Click DataGridViewComboBoxCell

One-Click DataGridViewComboBoxCell

Scheduled Pinned Locked Moved C#
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dominik Reichl
    wrote on last edited by
    #1

    Hello! My application has a DataGridView, which contains a DataGridViewComboBoxCell. Is there any way to make the combo box drop down its list on the first mouse click? Currently, the first mouse click activates the cell, the second one creates the hosted combo box, and the third click finally drops down the combo box list. I'd like the combo box drop down immediately on one click instead of 3. Thanks and best regards Dominik


    Too many passwords to remember? Try KeePass Password Safe!

    K 1 Reply Last reply
    0
    • D Dominik Reichl

      Hello! My application has a DataGridView, which contains a DataGridViewComboBoxCell. Is there any way to make the combo box drop down its list on the first mouse click? Currently, the first mouse click activates the cell, the second one creates the hosted combo box, and the third click finally drops down the combo box list. I'd like the combo box drop down immediately on one click instead of 3. Thanks and best regards Dominik


      Too many passwords to remember? Try KeePass Password Safe!

      K Offline
      K Offline
      kbalias
      wrote on last edited by
      #2

      Hi I am not sure if you can set it for individual cells. If you set the EditMode of the DataGridView itself to EditOnEnter then the comboboxes drop down at the first click. Unless another DataGridViewComboBoxCell was in open position. Then the first click will first close the open one and the second click will open the selected DataGridViewComboBoxCell. All the other cells in the DataGridViewRow will also now be editable as soon as they get focus. Regards. Kobus

      D 1 Reply Last reply
      0
      • K kbalias

        Hi I am not sure if you can set it for individual cells. If you set the EditMode of the DataGridView itself to EditOnEnter then the comboboxes drop down at the first click. Unless another DataGridViewComboBoxCell was in open position. Then the first click will first close the open one and the second click will open the selected DataGridViewComboBoxCell. All the other cells in the DataGridViewRow will also now be editable as soon as they get focus. Regards. Kobus

        D Offline
        D Offline
        Dominik Reichl
        wrote on last edited by
        #3

        That's exactly what I was looking for. Works perfectly, thank you very much!! Best regards Dominik


        Too many passwords to remember? Try KeePass Password Safe!

        K 1 Reply Last reply
        0
        • D Dominik Reichl

          That's exactly what I was looking for. Works perfectly, thank you very much!! Best regards Dominik


          Too many passwords to remember? Try KeePass Password Safe!

          K Offline
          K Offline
          kbalias
          wrote on last edited by
          #4

          My pleasure. I am glad I could help. There are so many things that I am still struggling with in DataGridViews. So I gladly help where I can. Best regards. Kobus

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups