Open dropdown(in a datagrid view) items on a single click

NewBie picture NewBie · Jun 14, 2011 · Viewed 21.8k times · Source

How can i avoid the double click on a DropDownButton used within a DataGridView? Right now I am able to view the drop down items within the DataGridView by clicking two or more times. First time it selects the cell and second time when I click on the DropDownButton arrow, it shows the list. How can I achieve the same in a single click?

Answer

algreat picture algreat · Jan 23, 2013

Set EditMode property of the DataGridView to EditOnEnter: link

DataGridView.EditMode - Gets or sets a value indicating how to begin editing a cell.

EditOnEnter - Editing begins when the cell receives focus.