views:

724

answers:

4

I want to cancel this operation if the user selects a specific item because I don't want to force the user to open the dropdown again. Can this be done?

+3  A: 

Why are you putting that item into the drop down list if you will not allow the user to select it? Can you modify your design to provide a more useful user interface?

Serhat Özgel
+2  A: 

Maybe you could just use ListBox control? Preventing combobox closing is imho a bad UI design idea...

Mr. Brownstone
A: 

You're going to override expected behavior of common control and it's not a good idea. If you want to provide some kind of hierarchical selection use ListBox or TreeView.

aku
A: 

this is my client request, I tried to give him another solution but no effect

Cornel
Well you probably can make a prototype of both and show him which is easier to use. If he still choses the combobox option, he asked for it...
Gamecat
the ComboBox is inside a DataGridView.
Cornel