Click here to Skip to main content
15,919,358 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
in my data gridview have combobox
in that combobx second click it will opened
but i wanna single click
please tell me how to set
or
how to write code
Posted
Updated 23-Feb-15 21:28pm
Comments
stibee 24-Feb-15 2:48am    
What did you try? Do you have some code?
User-8621695 24-Feb-15 4:03am    
Your question is not much clear and also share the code which you already did
SREENATH GANGA 25-Feb-15 4:19am    
Please try to give more details in the question bro , Please make clear whats your issue?..whether you are getting the dropdown of combobox on second click on the cell only or whether you are able to do some action on the combobox after double click only?

1 solution

You need to set the EditMode of the whole DataGridView:
C#
dataGridView1.EditMode = DataGridViewEditMode.EditOnEnter


This will change the behaviour for all the columns, so that as soon as they receive focus they will be in "edit mode".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900