How to prevent the user to select some items in an UltraComboEditor depending on the new value and other constraints? I need to reset the old value if the constraint is not satisfied. Something like BeforeSelectionChanged and an e.Cancel = true could be useful.
Thank you.
Hi Henry,
I don't think there's any good way to do this after the user has already clicked a row. But you can disable rows on the list using the Enable property. So maybe what you should do is handle the BeforeDropDown event and disable any rows that you don't want the user to select.
Hi,
My apologies for this dumb question, but I want to disable some items in my Dropdown list, and I don't find the Enable property on items. As you suggest rows can be disabled on the list, how can I achieve that ?
Thank you,
JL
Hi JL,
Not sure what I was referring to above. There's no way to disable items on the UltraComboEditor, because the ValueListItem does not have an Enabled property.
If you need to disable items on the list, then I recommend using UltraCombo instead of UltraComboEditor. The UltraCombo list is more like the WinGrid and it has Rows which you can disable or even hide.