Click here to Skip to main content
15,917,481 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
There is a combo box implemented in my project in which the Pop up is a Form and it contains the gridview. I When I click the dropdown then I will get a form containing the Datagridview.

Issue: when I want to select an Item for the combox . Then I need to double click the row of gridview whcih is in the popup window.I want it to be done using single click. I tried it and its not working.Please suggest.
Posted
Updated 20-May-13 3:18am
v2
Comments
Sergey Alexandrovich Kryukov 20-May-13 9:20am    
Not clear. What happens on the single click in the row and what's on double click? And how is this related to combo box? In your last sentence, you complain only about grid view clicks, not combo box.
—SA
rangaAH 20-May-13 10:15am    
Let me explain. It is implmented in such way that when you click a dropdown of combobox( it is the custom combobox) a form is made to open as pop up.This form has a gridview which gets open.The datsource for both combobox and gridview are same. When I select some other option(row) in the gridview popup.It take me two clicks to select a option. I will not be able to share code
rangaAH 20-May-13 10:24am    
Let me explain It is implmented in such way that when you click a dropdown of combobox( it is the custom combobox) a form is made to open as popup.This form has a gridview which gets open.The datsource for both combobox and gridview are same. In the rows displayed in datgridview pop up ,When I select some other option(row) It take me two clicks( or double click) to select a option.I want the selection to be done in combobox at one click. i e a single click on datagridview pop up should select a item in combobox
Kschuler 20-May-13 14:19pm    
Without seeing any code, it's tough to know what's going on. But it kind of sounds like maybe you are having to click once to put focus on the grid or cell and then the second click is selecting it. YOu could try setting focus when the grid is first shown. If that doesn't work, try posting the relevant code by clicking the Improve question link and updating your question.
Mayur Panchal 21-May-13 2:16am    
Which event of datagridview, you are handling to do your stuff?

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