Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey..
I am trying to add items in a ComboBox out of which 2 are ReadOnly and 1 is an editable item.. The problem I am facing,is i cant come up with a solution to edit the selected editable item..
I have create a ComboBox and added 3 items and set the dropdownStyle to DropDownList..
Can anybody help me???
Thanks
Posted

You can handle the key down event on the dropdown.
Based on what has been selected, you can either cancel or allow the edit.
 
Share this answer
 
Comments
Janed87 6-Aug-11 3:07am    
hey Abhinav..
thanks for your immediate response..
i need to get this more clear..
do i have to handle the key down event or Selection Changed event??
Thanks
hey Abhinav..
thanks for your immediate response..
i need to get this more clear..
do i have to handle the key down event or Selection Changed event??
Thanks
 
Share this answer
 
Comments
Orcun Iyigun 6-Aug-11 3:02am    
If you want to let Abhinav know about your comment please use "Add comment" button under his solution. please do not use solution as a reply.
Janed87 6-Aug-11 3:08am    
thanks..didnt know abt this..

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