Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
260
Disable text edit in UltraComboBex
posted

Hi,

I have to implement a specific user control based on an UltraComboEditor.

This control must provides a classic combo box with a list of choices, and a button to display an external editor to enter a custom value.

That's why, I have to configure the combo box as DropDown. But in the same time, I want to prevent the text edition capabilities of the combo box.

I can't switch to a DropDownList combo box style, because in this case I'll not be able to handle custom value coming from the external editor.

I tried to disable edit with the BeforeEnterInEditMode event (e.Cancel = true), but it also disable the drop down an button click capabilities.

Is there a way to disable just the edit part of a DropDown combo box ?

We have the same behavior to implement in a grid and in this case we use the NoEdit constants on the cell activation property. Maybe there is something similar in classic controls ?

Best regards.

Jean-Charles Durand